mirror of
https://github.com/django-components/django-components.git
synced 2025-10-25 12:57:19 +00:00
refactor: prefix component ID with c (#1127)
This commit is contained in:
parent
fc026cbd99
commit
c650e7f3a5
29 changed files with 786 additions and 746 deletions
|
|
@ -25,8 +25,8 @@ Components.registerComponentData(
|
|||
// we can run component's init function
|
||||
Components.callComponent(
|
||||
"table", // Component name
|
||||
12345, // Component ID - An HTML element with corresponding
|
||||
// attribute (`data-djc-id-12345`) MUST
|
||||
"c123456", // Component ID - An HTML element with corresponding
|
||||
// attribute (`data-djc-id-c123456`) MUST
|
||||
// be present in the DOM.
|
||||
"3d09cf", // Input ID
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue