Documentation
¶
Overview ¶
Package react is a set of GopherJS bindings for Facebook's React, a Javascript library for building user interfaces.
For more information see https://github.com/myitcv/react/wiki
Index ¶
- type AElem
- type AProps
- type AbbrElem
- type AbbrProps
- type AriaSet
- type ArticleElem
- type ArticleProps
- type AsideElem
- type AsideProps
- type BElem
- type BProps
- type BrElem
- type BrProps
- type ButtonElem
- type ButtonProps
- type CSS
- type CaptionElem
- type CaptionProps
- type CodeElem
- type CodeProps
- type Component
- type ComponentBuilder
- type ComponentDef
- type DangerousInnerHTML
- type DataSet
- type DivElem
- type DivProps
- type Element
- func CreateElement(buildCmp ComponentBuilder, newprops Props, children ...Element) Element
- func CreateElementFromJS(object *js.Object) Element
- func CreateElementRef(buildCmp ComponentBuilder, newprops Props, GetRef func(*js.Object), ...) Element
- func Render(el Element, container dom.Element) Element
- type EmElem
- type EmProps
- type Event
- type FooterElem
- type FooterProps
- type FormElem
- type FormProps
- type FragmentElem
- type H1Elem
- type H1Props
- type H2Elem
- type H2Props
- type H3Elem
- type H3Props
- type H4Elem
- type H4Props
- type H5Elem
- type H5Props
- type H6Elem
- type H6Props
- type HeaderElem
- type HeaderProps
- type HrElem
- type HrProps
- type IElem
- type IFrameElem
- type IFrameProps
- type IProps
- type ImgElem
- type ImgProps
- type InputElem
- type InputProps
- type LabelElem
- type LabelProps
- type LiElem
- type LiProps
- type MainElem
- type MainProps
- type NavElem
- type NavProps
- type OnChange
- type OnClick
- type OptionElem
- type OptionProps
- type PElem
- type PProps
- type PreElem
- type PreProps
- type Props
- type Ref
- type RendersLi
- type S
- type SelectElem
- type SelectProps
- type SpanElem
- type SpanProps
- type State
- type StrikeElem
- type StrikeProps
- type SupElem
- type SupProps
- type SyntheticEvent
- type SyntheticMouseEvent
- type TableElem
- type TableProps
- type TbodyElem
- type TbodyProps
- type TdElem
- type TdProps
- type TextAreaElem
- type TextAreaProps
- type ThElem
- type ThProps
- type TheadElem
- type TheadProps
- type TrElem
- type TrProps
- type UlElem
- type UlProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AElem ¶
type AElem struct {
Element
}
AElem is the React element definition corresponding to the HTML <a> element
type AProps ¶
type AProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet Href string ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS Target string Title string }
AProps defines the properties for the <a> element
type AbbrElem ¶
type AbbrElem struct {
Element
}
AbbrElem is the React element definition corresponding to the HTML <abbr> element
type AbbrProps ¶
type AbbrProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
AbbrProps defines the properties for the <abbr> element
type ArticleElem ¶
type ArticleElem struct {
Element
}
ArticleElem is the React element definition corresponding to the HTML <article> element
func Article ¶
func Article(props *ArticleProps, children ...Element) *ArticleElem
Article creates a new instance of a <article> element with the provided props and children
type ArticleProps ¶
type ArticleProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
ArticleProps defines the properties for the <article> element
type AsideElem ¶
type AsideElem struct {
Element
}
AsideElem is the React element definition corresponding to the HTML <aside> element
func Aside ¶
func Aside(props *AsideProps, children ...Element) *AsideElem
Aside creates a new instance of a <aside> element with the provided props and children
type AsideProps ¶
type AsideProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
AsideProps defines the properties for the <aside> element
type BElem ¶
type BElem struct {
Element
}
BElem is the React element definition corresponding to the HTML <b> element
type BProps ¶
type BProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
BProps defines the properties for the <b> element
type BrElem ¶
type BrElem struct {
Element
}
BrElem is the React element definition corresponding to the HTML <br> element
type BrProps ¶
type BrProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
BrProps defines the properties for the <br> element
type ButtonElem ¶
type ButtonElem struct {
Element
}
ButtonElem is the React element definition corresponding to the HTML <button> element
func Button ¶
func Button(props *ButtonProps, children ...Element) *ButtonElem
Button creates a new instance of a <button> element with the provided props and children
type ButtonProps ¶
type ButtonProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS Type string }
ButtonProps defines the properties for the <button> element
type CSS ¶
type CSS struct { Float string FontSize string FontStyle string Height string Left string MarginTop string MaxHeight string MinHeight string Overflow string OverflowY string Position string Resize string Top string Width string ZIndex string // contains filtered or unexported fields }
CSS defines CSS attributes for HTML components. Largely based on https://developer.mozilla.org/en-US/docs/Web/CSS/Reference
type CaptionElem ¶
type CaptionElem struct {
Element
}
CaptionElem is the React element definition corresponding to the HTML <caption> element
func Caption ¶
func Caption(props *CaptionProps, children ...Element) *CaptionElem
Caption creates a new instance of a <caption> element with the provided props and children
type CaptionProps ¶
type CaptionProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
CaptionProps defines the properties for the <caption> element
type CodeElem ¶
type CodeElem struct {
Element
}
CodeElem is the React element definition corresponding to the HTML <code> element
type CodeProps ¶
type CodeProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
CodeProps defines the properties for the <code> element
type ComponentBuilder ¶
type ComponentBuilder func(elem ComponentDef) Component
type ComponentDef ¶
type ComponentDef struct {
// contains filtered or unexported fields
}
ComponentDef is embedded in a type definition to indicate the type is a component
func RefToComponent ¶
func RefToComponent(ref *js.Object) ComponentDef
Conver Ref pointer to ComponentDef
func (ComponentDef) Children ¶
func (c ComponentDef) Children() []Element
func (ComponentDef) ForceUpdate ¶
func (c ComponentDef) ForceUpdate()
func (ComponentDef) Props ¶
func (c ComponentDef) Props() Props
func (ComponentDef) SetState ¶
func (c ComponentDef) SetState(i State)
func (ComponentDef) State ¶
func (c ComponentDef) State() State
type DangerousInnerHTML ¶
type DangerousInnerHTML struct {
// contains filtered or unexported fields
}
DangerousInnerHTML is convenience definition that allows HTML to be directly set as the child of a DOM element. See https://facebook.github.io/react/docs/dom-elements.html#dangerouslysetinnerhtml for more details
func NewDangerousInnerHTML ¶
func NewDangerousInnerHTML(s string) *DangerousInnerHTML
NewDangerousInnerHTML creates a new DangerousInnerHTML instance, using the supplied string as the raw HTML
type DivElem ¶
type DivElem struct {
Element
}
DivElem is the React element definition corresponding to the HTML <div> element
type DivProps ¶
type DivProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
DivProps defines the properties for the <div> element
type Element ¶
func CreateElement ¶
func CreateElement(buildCmp ComponentBuilder, newprops Props, children ...Element) Element
func CreateElementFromJS ¶
func CreateElementRef ¶
type EmElem ¶
type EmElem struct {
Element
}
EmElem is the React element definition corresponding to the HTML <em> element
type EmProps ¶
type EmProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
EmProps defines the properties for the <em> element
type FooterElem ¶
type FooterElem struct {
}FooterElem is the React element definition corresponding to the HTML <footer> element
func Footer ¶
func Footer(props *FooterProps, children ...Element) *FooterElem
Footer creates a new instance of a <footer> element with the provided props and children
type FooterProps ¶
type FooterProps struct {}
FooterProps defines the properties for the <footer> element
type FormElem ¶
type FormElem struct {
Element
}
FormElem is the React element definition corresponding to the HTML <form> element
type FormProps ¶
type FormProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
FormProps defines the properties for the <form> element
type FragmentElem ¶
type FragmentElem struct {
Element
}
FragmentElem is the special React Fragment element definition. Fragments let you group a list of children without adding extra nodes to the DOM. See https://reactjs.org/docs/fragments.html for more details.
func Fragment ¶
func Fragment(children ...Element) *FragmentElem
Fragment creates a new instance of a <React.Fragment> element with the provided children
type H1Elem ¶
type H1Elem struct {
Element
}
H1Elem is the React element definition corresponding to the HTML <h1> element
type H1Props ¶
type H1Props struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
H1Props defines the properties for the <h1> element
type H2Elem ¶
type H2Elem struct {
Element
}
H2Elem is the React element definition corresponding to the HTML <h2> element
type H2Props ¶
type H2Props struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
H2Props defines the properties for the <h2> element
type H3Elem ¶
type H3Elem struct {
Element
}
H3Elem is the React element definition corresponding to the HTML <h3> element
type H3Props ¶
type H3Props struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
H3Props defines the properties for the <h3> element
type H4Elem ¶
type H4Elem struct {
Element
}
H4Elem is the React element definition corresponding to the HTML <h4> element
type H4Props ¶
type H4Props struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
H4Props defines the properties for the <h4> element
type H5Elem ¶
type H5Elem struct {
Element
}
H5Elem is the React element definition corresponding to the HTML <h5> element
type H5Props ¶
type H5Props struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
H5Props defines the properties for the <h5> element
type H6Elem ¶
type H6Elem struct {
Element
}
H6Elem is the React element definition corresponding to the HTML <h6> element
type H6Props ¶
type H6Props struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
H6Props defines the properties for the <h6> element
type HeaderElem ¶
type HeaderElem struct {
Element
}
HeaderElem is the React element definition corresponding to the HTML <header> element
func Header ¶
func Header(props *HeaderProps, children ...Element) *HeaderElem
Header creates a new instance of a <header> element with the provided props and children
type HeaderProps ¶
type HeaderProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
HeaderProps defines the properties for the <header> element
type HrElem ¶
type HrElem struct {
Element
}
HrElem is the React element definition corresponding to the HTML <hr> element
type HrProps ¶
type HrProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
HrProps defines the properties for the <hr> element
type IElem ¶
type IElem struct {
Element
}
IElem is the React element definition corresponding to the HTML <i> element
type IFrameElem ¶
type IFrameElem struct {
Element
}
IFrameElem is the React element definition corresponding to the HTML <iframe> element
func IFrame ¶
func IFrame(props *IFrameProps, children ...Element) *IFrameElem
IFrame creates a new instance of a <iframe> element with the provided props and children
type IFrameProps ¶
type IFrameProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string SrcDoc string Style *CSS }
IFrameProps defines the properties for the <iframe> element
type IProps ¶
type IProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
IProps defines the properties for the <i> element
type ImgElem ¶
type ImgElem struct {
Element
}
ImgElem is the React element definition corresponding to the HTML <img> element
type ImgProps ¶
type ImgProps struct { Alt string AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Src string Style *CSS }
ImgProps defines the properties for the <img> element
type InputElem ¶
type InputElem struct {
Element
}
InputElem is the React element definition corresponding to the HTML <input> element
func Input ¶
func Input(props *InputProps, children ...Element) *InputElem
Input creates a new instance of a <input> element with the provided props and children
type InputProps ¶
type InputProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Placeholder string Ref Ref Role string Style *CSS Type string Value string }
InputProps defines the properties for the <input> element
type LabelElem ¶
type LabelElem struct {
Element
}
LabelElem is the React element definition corresponding to the HTML <label> element
func Label ¶
func Label(props *LabelProps, children ...Element) *LabelElem
Label creates a new instance of a <label> element with the provided props and children
type LabelProps ¶
type LabelProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet For string ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
LabelProps defines the properties for the <label> element
type LiElem ¶
type LiElem struct {
Element
}
LiElem is the React element definition corresponding to the HTML <li> element
type LiProps ¶
type LiProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
LiProps defines the properties for the <li> element
type MainElem ¶
type MainElem struct {
Element
}
MainElem is the React element definition corresponding to the HTML <main> element
type MainProps ¶
type MainProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
MainProps defines the properties for the <main> element
type NavElem ¶
type NavElem struct {
}NavElem is the React element definition corresponding to the HTML <nav> element
type OnChange ¶
type OnChange interface { Event OnChange(e *SyntheticEvent) }
type OnClick ¶
type OnClick interface { Event OnClick(e *SyntheticMouseEvent) }
type OptionElem ¶
type OptionElem struct {
Element
}
OptionElem is the React element definition corresponding to the HTML <option> element
func Option ¶
func Option(props *OptionProps, children ...Element) *OptionElem
Option creates a new instance of a <option> element with the provided props and children
type OptionProps ¶
type OptionProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS Value string }
OptionProps defines the properties for the <option> element
type PElem ¶
type PElem struct {
Element
}
PElem is the React element definition corresponding to the HTML <p> element
type PProps ¶
type PProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
PProps defines the properties for the <p> element
type PreElem ¶
type PreElem struct {
Element
}
PreElem is the React element definition corresponding to the HTML <pre> element
type PreProps ¶
type PreProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
PreProps defines the properties for the <pre> element
type SelectElem ¶
type SelectElem struct {
Element
}
SelectElem is the React element definition corresponding to the HTML <select> element
func Select ¶
func Select(props *SelectProps, children ...*OptionElem) *SelectElem
Select creates a new instance of a <select> element with the provided props and children
type SelectProps ¶
type SelectProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS Value string }
SelectProps defines the properties for the <select> element
type SpanElem ¶
type SpanElem struct {
Element
}
SpanElem is the React element definition corresponding to the HTML <span> element
type SpanProps ¶
type SpanProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
SpanProps defines the properties for the <span> element
type StrikeElem ¶
type StrikeElem struct {
Element
}
StrikeElem is the React element definition corresponding to the HTML <s> element
func Strike ¶
func Strike(props *StrikeProps, children ...Element) *StrikeElem
Strike creates a new instance of a <s> element with the provided props and children
type StrikeProps ¶
type StrikeProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
StrikeProps defines the properties for the <s> element
type SupElem ¶
type SupElem struct {
Element
}
SupElem is the React element definition corresponding to the HTML <sup> element
type SupProps ¶
type SupProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
SupProps defines the properties for the <sup> element
type SyntheticEvent ¶
type SyntheticEvent struct { PreventDefault func() `js:"preventDefault"` StopPropagation func() `js:"stopPropagation"` // contains filtered or unexported fields }
func (*SyntheticEvent) Target ¶
func (s *SyntheticEvent) Target() dom.HTMLElement
type SyntheticMouseEvent ¶
type SyntheticMouseEvent struct { *SyntheticEvent ClientX int `js:"clientX"` }
type TableElem ¶
type TableElem struct {
Element
}
TableElem is the React element definition corresponding to the HTML <table> element
func Table ¶
func Table(props *TableProps, children ...Element) *TableElem
Table creates a new instance of a <table> element with the provided props and children
type TableProps ¶
type TableProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
TableProps defines the properties for the <table> element
type TbodyElem ¶
type TbodyElem struct {
Element
}
TbodyElem is the React element definition corresponding to the HTML <tbody> element
func Tbody ¶
func Tbody(props *TbodyProps, children ...Element) *TbodyElem
Tbody creates a new instance of a <tbody> element with the provided props and children
type TbodyProps ¶
type TbodyProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
TbodyProps defines the properties for the <tbody> element
type TdElem ¶
type TdElem struct {
Element
}
TdElem is the React element definition corresponding to the HTML <td> element
type TdProps ¶
type TdProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
TdProps defines the properties for the <td> element
type TextAreaElem ¶
type TextAreaElem struct {
Element
}
TextAreaElem is the React element definition corresponding to the HTML <textarea> element
func TextArea ¶
func TextArea(props *TextAreaProps, children ...Element) *TextAreaElem
TextArea creates a new instance of a <textarea> element with the provided props and children
type TextAreaProps ¶
type TextAreaProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Placeholder string Ref Ref Role string Style *CSS Value string }
TextAreaProps defines the properties for the <textarea> element
type ThElem ¶
type ThElem struct {
Element
}
ThElem is the React element definition corresponding to the HTML <th> element
type ThProps ¶
type ThProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
ThProps defines the properties for the <th> element
type TheadElem ¶
type TheadElem struct {
Element
}
TheadElem is the React element definition corresponding to the HTML <thead> element
func Thead ¶
func Thead(props *TheadProps, children ...Element) *TheadElem
Thead creates a new instance of a <thead> element with the provided props and children
type TheadProps ¶
type TheadProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
TheadProps defines the properties for the <thead> element
type TrElem ¶
type TrElem struct {
Element
}
TrElem is the React element definition corresponding to the HTML <tr> element
type TrProps ¶
type TrProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
TrProps defines the properties for the <tr> element
type UlElem ¶
type UlElem struct {
Element
}
UlElem is the React element definition corresponding to the HTML <ul> element
type UlProps ¶
type UlProps struct { AriaExpanded bool AriaHasPopup bool AriaLabelledBy string ClassName string DangerouslySetInnerHTML *DangerousInnerHTML DataSet DataSet ID string Key string OnChange OnChange OnClick OnClick Ref Ref Role string Style *CSS }
UlProps defines the properties for the <ul> element
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
coreGen
coreGen is a go generate generator that helps to automate writing the core of github.com/lijianying10/react.
|
coreGen is a go generate generator that helps to automate writing the core of github.com/lijianying10/react. |
cssGen
cssGen is a temporary code generator for the github.com/lijianying10/react.CSS type
|
cssGen is a temporary code generator for the github.com/lijianying10/react.CSS type |
reactGen
reactGen is a go generate generator that helps to automate the process of writing GopherJS React web applications.
|
reactGen is a go generate generator that helps to automate the process of writing GopherJS React web applications. |
reactVet
reactVet is a vet program used to check the correctness of github.com/lijianying10/react based packages.
|
reactVet is a vet program used to check the correctness of github.com/lijianying10/react based packages. |
stateGen
stateGen is a go generate generator that helps to automate the process of creating state trees for use in GopherJS React web applications.
|
stateGen is a go generate generator that helps to automate the process of creating state trees for use in GopherJS React web applications. |
components
|
|
internal
|
|
Package jsx allows you to render blocks of HTML as github.com/lijianying10/react elements.
|
Package jsx allows you to render blocks of HTML as github.com/lijianying10/react elements. |