void InitializeCornerLabelDiv() { if (_cornerLabelDiv == null) { _cornerLabelDiv = DOM.div("ui corner label").AppendTo(_root); DOM.i("asterisk icon").AppendTo(_cornerLabelDiv); _root.AddClass("labeled"); } }
private void RenderIfActive() { React.Render( DOM.div( null, DOM.h1(null, "React in DuoCode"), DOM.span(new HTMLAttributes { className = "time" }, _viewModel.LastUpdated), DOM.input(new InputAttributes { className = "message", value = _viewModel.Message, onChange = ev => UpdateMessage(ev.target.value) }), DOM.span(new HTMLAttributes { className = "error" }, _viewModel.ValidationError) ), _renderContainer ); }
public override void InitDOM() { _root = DOM.div(); Render(); }
public override Element Render() { return(DOM.div(null, props.Props.Name)); }