Skip to content

Commit fd9aca8

Browse files
committed
improve README.
1 parent 846ddcd commit fd9aca8

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

README.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
</aha-table>
5858
```
5959
60-
## Options
60+
## &lt;aha-table&gt;
61+
62+
### Options
6163
6264
Attribute | Options | Default | Description
6365
--- | --- | --- | ---
@@ -91,7 +93,26 @@ Attribute | Options | Default | Description
9193
`filterhiddenclass` | *String* | undefined | customized class of filterrow when filter row is hidden
9294
9395
94-
## Options for aha-column
96+
## Events
97+
98+
Name | Arguments | Description
99+
--- | --- | ---
100+
`after-invalid` | `Event` | call after saving a cell by it's invalid
101+
`after-td-click` | `Event` | call after user click a cell, usually after this cell is editable
102+
`after-td-dbclick` | `Event` | call after user dbclick a cell
103+
`before-create` | `Event` | call before a record is created internally
104+
`after-create` | `Event` | call after a record is created internally
105+
`before-copy` | `Event` | call before a record is copyed from another internally
106+
`after-copy` | `Event` | call after a record is copyed from another internally
107+
`before-remove` | `Event` | call before a record is removed internally
108+
`after-remove` | `Event` | call after a record is removed internally
109+
110+
111+
## &lt;aha-column&gt;
112+
113+
Provides you a declarative way to define column meta.
114+
115+
### Options
95116

96117
Attribute | Options | Default | Description
97118
--- | --- | --- | ---
@@ -108,19 +129,6 @@ Attribute | Options | Default | Descri
108129
`hint` | *String* | undefined | this text will be displayed at the column header for instruction.
109130
`searchplaceholder` | *String* | undefined | this text will be displayed in search filter input box.
110131

111-
## Events
112-
113-
Name | Arguments | Description
114-
--- | --- | ---
115-
`after-invalid` | `Event` | call after saving a cell by it's invalid
116-
`after-td-click` | `Event` | call after user click a cell, usually after this cell is editable
117-
`after-td-dbclick` | `Event` | call after user dbclick a cell
118-
`before-create` | `Event` | call before a record is created internally
119-
`after-create` | `Event` | call after a record is created internally
120-
`before-copy` | `Event` | call before a record is copyed from another internally
121-
`after-copy` | `Event` | call after a record is copyed from another internally
122-
`before-remove` | `Event` | call before a record is removed internally
123-
`after-remove` | `Event` | call after a record is removed internally
124132

125133
## Browser Compatability
126134

0 commit comments

Comments
 (0)