public override ReactElement Render() { var fa = new FieldSetAttributes { ClassName = props.ClassName }; var lgd = DOM.Legend(null, string.IsNullOrWhiteSpace( props.Title + " : " + props.Content) ? "Untitled" : props.Title + " : " + props.Content); var la = new Attributes { ClassName = "label" }; var tiTitle = new TextInput ( disabled: false, content: props.Title, onChange: e => props.OnChange(new MessageDetails(e, props.Content)), className: new NonBlankTrimmedString("Title") ); var tiContent = new TextInput ( disabled: false, content: props.Content, onChange: e => props.OnChange(new MessageDetails(props.Title, e)), className: new NonBlankTrimmedString("Content") ); var ba = new ButtonAttributes { Disabled = props.Disabled, OnClick = e => props.OnSave() }; return(DOM.FieldSet( fa, lgd, DOM.Span(la, "Title"), tiTitle, DOM.Span(la, "Content"), tiContent, DOM.Button(ba, "Save") )); }
public extern static ReactElement FieldSet(FieldSetAttributes properties, params ReactElementOrText[] children);