add table viewing page
This commit is contained in:
+15
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user