I'm using the grid component, and according to the doc, the Row.Column component has a width attribute, that I'd like to access.
class MainGrid extends Component {
render() {
return (
<Grid>
<Grid.Row columns={2}>
<Grid.Column>
<JsonEditor
width={???} // <---- I'd like to set the width property with the column's width property
/>
</Grid.Column>
<Grid.Column>
</Grid.Column>
</Grid.Row>
<Grid.Row columns={1}>
</Grid.Row>
</Grid>
);
}
}
If I understand correctly, it's fine to use a Row.Column property for my JsonEditor component, because it's passing a property from a parent to a child. But I cannot figure out how to do that.
Grid.Columnwidthand makeJsonEditorwidth 100%?JsonEditor'swidthproperty is in pixels unfortunately.