Components
Table
Tag: <we-table>
Standard module: we_table
Renders columns and rows supplied by the caller, with optional row numbers, lookup resolution, and row actions.
Features
- Renders caller-provided column and row arrays, linking fields marked
isNameFieldto their record. - Supports row numbers and action buttons; action clicks emit
buttonaction.
Public parameters
| JavaScript property | HTML attribute | Type | Initial value | Purpose |
|---|---|---|---|---|
keyField |
key-field |
String | — |
Field used as the row key. |
showNumbers |
show-numbers |
Boolean | false |
Whether to show row numbers. |
objectName |
object-name |
String | "" |
Object API name in context. |
resolveLookup |
resolve-lookup |
Boolean | false |
Whether lookup references are resolved. |
buttonActions |
button-actions |
Array | [] |
Row action definitions. |
tableColumns |
table-columns |
Array | — |
Column definitions supplied by the caller. |
tableData |
table-data |
Array | — |
Row data supplied by the caller. |
Public methods
No @apiFunction methods are declared.
Events
buttonactionis emitted as a DOM custom event.
Source: working/environment_modules/standard/we_table/WebComponent/WeTable.js.