Variable InStyledElement

InStyledElement: {
    get [InAspect__symbol](): InAspect<null | Element, "default">;
    to<TValue>(element?) => Aspect<any, TValue>;
}

Type declaration

  • get [InAspect__symbol](): InAspect<null | Element, "default">
  • to:function
    • Creates input control aspect converter that assigns the given styled element to converted control.

      This is useful for controls without elements (such as input groups), or can be used to apply CSS classes to input element wrappers (such as form-group in Bootstrap).

      Type Parameters

      • TValue

        Converted control value type.

      Parameters

      • element: null | Element = null

        A DOM element to apply styles to. Styles won't be applied when null or undefined.

      Returns Aspect<any, TValue>

      Input control aspect converter.

Generated using TypeDoc