1 | <?php |
||
22 | class FloatHeaderBehavior extends Behavior implements RegistersClientScriptInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var array $clientOptions the options for the underlying floatThead jquery plugin. The default offset is set to |
||
26 | * `50` assuming a fixed bootstrap navbar on top. |
||
27 | * |
||
28 | * @see http://mkoryak.github.io/floatThead#options |
||
29 | */ |
||
30 | public $clientOptions = [ |
||
31 | 'top' => 50 |
||
32 | ]; |
||
33 | /** |
||
34 | * @var array $clientEvents the events of the underlying floatThead jquery plugin. For example, to set the |
||
35 | * floatThead event: |
||
36 | * |
||
37 | * ``` |
||
38 | * 'floatThead' => new JsExpression('function(e, isFloated, $floatContainer) { |
||
39 | * if(isFloated) { |
||
40 | * $floatContainer.addClass("floated"); |
||
41 | * } |
||
42 | * |
||
43 | * }') |
||
44 | * ``` |
||
45 | * |
||
46 | * @see http://mkoryak.github.io/floatThead/#options |
||
47 | */ |
||
48 | public $clientEvents = []; |
||
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | public function registerClientScript() |
||
76 | } |
||
77 |