Parameters
$border - The border attribute.
$borderSpacing - The borderspacing attribute
$cellPadding - The cellpadding attribute
$className - The class attribute.
$id - The id attribute.
Returns
The common table attributes.
Syntax
| PHP |
public function TableAttribs(int $border = 1, int $borderSpacing = 0 , int $cellPadding = 2, string $className = null, string $id = null)
|
Gets common table attributes.
Example
| PHP |
// Root Method Begin
$textState = new LJCTextState();
$tb = new LJCTextBuilder($textState);
// Example Method:
$border = 1;
$cellspacing = 2;
$cellpadding = 3;
// Defaults: border = 1, borderspacing = 0, cellpadding = 2.
$attribs = $tb->TableAttribs($border, $cellspacing, $cellpadding);
$result = $tb->GetAttribs($attribs, $textState);
// result:
// style="border: 1px solid; borderspacing: 2px; cellpadding: 3px;"
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.