add table viewing page

This commit is contained in:
2018-07-21 23:57:31 +02:00
parent 26488e5883
commit e01c63cfa2
11 changed files with 223 additions and 10 deletions
+15 -1
View File
@@ -53,18 +53,32 @@ class Widget
$this->$method = $arg;
}
else {
$this->attributesArray[$method] = $arg;
$this->attributesArray[kebab_case($method)] = $arg;
}
return $this;
}
/** Explicitly set a CSS rule */
public function css($prop, $val)
{
$this->styleArray[$prop] = $val;
return $this;
}
/** Explicitly set an attribute */
public function attr($attr, $val)
{
$this->attributesArray[$attr] = $val;
return $this;
}
/** Configure a text field for automatic alias generation */
public function autoAlias($targetName, $delimiter='_')
{
return $this->attr('data-autoalias', $targetName)->attr('data-aa-delimiter', $delimiter);
}
/** Apply a given layout (bootstrap grid, 12 cols total) */
public function layout($labelCols, $fieldCols)
{