Skip to content

Commit f95f678

Browse files
fryktenbantic
authored andcommitted
[DOCS] Add new reorder-directional classes (#783)
1 parent 6529af2 commit f95f678

File tree

1 file changed

+8
-0
lines changed
  • tests/dummy/app/pods/docs/guides/main/styling-the-table

1 file changed

+8
-0
lines changed

tests/dummy/app/pods/docs/guides/main/styling-the-table/template.md

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ applied there for inspiration.
1313
In the future, this page will contain a class list and outline of the base HTML
1414
for Ember Table.
1515

16+
## Reorder indicators
17+
18+
When reordering the columns, two elements are created to be customized and allow the user to understand what he is doing.
19+
20+
A first `.et-reorder-main-indicator` element is created, which basically is a ghost copy of the header cell currently grabbed. By default, it has no CSS property, giving a `position: absolute;` so this element is positioned on the `<thead>` is recommended.
21+
22+
A second `.et-reorder-drop-indicator` element is created, which is the target header cell. It has two CSS classes `.et-reorder-direction-left` and `.et-reorder-direction-right` depending on the current drop position to show whether the drop will be directed on the left or on the right. Styling these will give the user a more intuitive experience of how they is reordering their table.
23+
1624
## Styling Examples
1725

1826
Here is an example of using CSS Flex properties to create a layout that has a fixed page header and footer and a content area that is split for a search input area on the left and a data table on the right: [CSS Flex](https://ember-twiddle.com/4cb616452e3316ddcec242192fc4a96c?openFiles=templates.application.hbs%2C). The same layout using Bootstrap classes: [Bootstrap Flex](https://ember-twiddle.com/d27c9f154050688518a7ca9a0b055a26?openFiles=templates.application.hbs%2C). This version is also somewhat responsive, so change your window sizes to see it respond.

0 commit comments

Comments
 (0)