Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/extract-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const attributeMap = supportedAttributes.reduce((map, reactAttribute) => {
* descriptions and supported elements.
*/
function extractAttributes($) {
const $table = $('#Attribute_list').next('table');
const $table = $('#Attribute_list').parent().find('table');
if($table.length !== 1) {
throw new Error('page structure changed at ' + htmlURL);
}
const attributes = {};

$table.find('tbody tr').each((i, row) => {
Expand Down
3 changes: 3 additions & 0 deletions scripts/generate-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ function generatePropTypes(element, attributes) {
component_name: PropTypes.string,
}),

/**
* Dash-assigned callback that gets fired when the element is clicked.
*/
'setProps': PropTypes.func`
}

Expand Down