Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit 86df597

Browse files
authored
Fix indentation
1 parent 3a8712c commit 86df597

1 file changed

Lines changed: 59 additions & 63 deletions

File tree

Resources/doc/extensions.md

Lines changed: 59 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ With the `create_buttons` option you can create custom buttons. Each button has
122122
| text | string or null | null | Visible text. |
123123
| title_attr | string or null | null | Button title attribute text. |
124124
| button_options | array or null | null | All special button options. |
125-
126125
___
127126

128127
## 2. Responsive
@@ -218,74 +217,72 @@ With the Responsive class you can set some `display` options to define how the h
218217
| target | string, int or null | null | Column / selector for child row display control. |
219218
| renderer | array or null | null | Define the renderer used to display the child rows. |
220219
| display | array or null | null | Define how the hidden information should be displayed to the end user. |
221-
222220
___
223221

224222
## 3. Select
225223

226-
**Be sure to install the [Select Extension](https://datatables.net/extensions/select/) before using.**
227-
228-
### Template
229-
230-
@SgDatatables/datatable/extensions.html.twig
231-
232-
### Initialisation
233-
234-
#### The easiest way
235-
236-
The easiest way is to add `select` to your extensions options with a boolean value.
237-
238-
``` php
239-
public function buildDatatable(array $options = array())
240-
{
241-
// ...
242-
243-
$this->extensions->set(array(
244-
'select' => true,
245-
));
246-
247-
// ...
248-
}
249-
```
250-
251-
#### Advanced example
252-
253-
The Bootstrap modal example:
254-
255-
``` php
256-
public function buildDatatable(array $options = array())
257-
{
258-
// ...
259-
260-
$this->extensions->set(array(
261-
'select' => array(
262-
'blurable' => false,
263-
'className' => 'selected',
264-
'info' => true,
265-
'items' => 'row',
266-
'selector' => 'td, th',
267-
'style' => 'os',
268-
),
269-
));
270-
271-
// ...
272-
}
273-
```
274-
275-
### Select class options
224+
**Be sure to install the [Select Extension](https://datatables.net/extensions/select/) before using.**
225+
226+
### Template
227+
228+
@SgDatatables/datatable/extensions.html.twig
229+
230+
### Initialisation
231+
232+
#### The easiest way
233+
234+
The easiest way is to add `select` to your extensions options with a boolean value.
235+
236+
``` php
237+
public function buildDatatable(array $options = array())
238+
{
239+
// ...
240+
241+
$this->extensions->set(array(
242+
'select' => true,
243+
));
276244

277-
With the Select class you can set the following options, for details see the [Plugin documentation](https://datatables.net/reference/option/#select).
245+
// ...
246+
}
247+
```
248+
249+
#### Advanced example
250+
251+
The Bootstrap modal example:
252+
253+
``` php
254+
public function buildDatatable(array $options = array())
255+
{
256+
// ...
257+
258+
$this->extensions->set(array(
259+
'select' => array(
260+
'blurable' => false,
261+
'className' => 'selected',
262+
'info' => true,
263+
'items' => 'row',
264+
'selector' => 'td, th',
265+
'style' => 'os',
266+
),
267+
));
278268

279-
| Option | Type | Default | Description |
280-
|-----------|-----------------|---------|------------------------------------|
281-
| blurable | boolean or null | null | Indicate if the selected items will be removed when clicking outside of the table |
282-
| classname | string or null | null | Set the class name that will be applied to selected items |
283-
| info | boolean or null | null | Enable / disable the display for item selection information in the table summary |
284-
| items | string or null | null | Set which table items to select (rows, columns or cells) |
285-
| selector | string or null | null | Set the element selector used for mouse event capture to select items |
286-
| style | string or null | null | Set the selection style for end user interaction with the table |
287-
___
269+
// ...
270+
}
271+
```
272+
273+
### Select class options
288274

275+
With the Select class you can set the following options, for details see the [Plugin documentation](https://datatables.net/reference/option/#select).
276+
277+
| Option | Type | Default | Description |
278+
|-----------|-----------------|---------|------------------------------------|
279+
| blurable | boolean or null | null | Indicate if the selected items will be removed when clicking outside of the table |
280+
| classname | string or null | null | Set the class name that will be applied to selected items |
281+
| info | boolean or null | null | Enable / disable the display for item selection information in the table summary |
282+
| items | string or null | null | Set which table items to select (rows, columns or cells) |
283+
| selector | string or null | null | Set the element selector used for mouse event capture to select items |
284+
| style | string or null | null | Set the selection style for end user interaction with the table |
285+
___
289286

290287
## 4. RowGroup
291288

@@ -363,4 +360,3 @@ With the RowGroup class you can set the following options, for details see the [
363360
| endRender | array or null | null | Provide a function that can be used to control the data shown in the end grouping row. |
364361
| startRender | array or null | null | Provide a function that can be used to control the data shown in the start grouping row. |
365362
___
366-

0 commit comments

Comments
 (0)