Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 566dc70

Browse files
authored
Merge pull request #170 from plotly/mdn-update-yari
Update component generation
2 parents 66ba2ac + 4aebb6a commit 566dc70

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

scripts/extract-attributes.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ const attributeMap = supportedAttributes.reduce((map, reactAttribute) => {
5555
* descriptions and supported elements.
5656
*/
5757
function extractAttributes($) {
58-
const $table = $('#Attribute_list').next('table');
58+
const $table = $('#Attribute_list').parent().find('table');
59+
if($table.length !== 1) {
60+
throw new Error('page structure changed at ' + htmlURL);
61+
}
5962
const attributes = {};
6063

6164
$table.find('tbody tr').each((i, row) => {

scripts/generate-components.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ function generatePropTypes(element, attributes) {
192192
component_name: PropTypes.string,
193193
}),
194194
195+
/**
196+
* Dash-assigned callback that gets fired when the element is clicked.
197+
*/
195198
'setProps': PropTypes.func`
196199
}
197200

0 commit comments

Comments
 (0)