Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ext/CvHtmlProp"

Index

Interfaces

Variables

Variables

CvHtmlProp

CvHtmlProp: ClassicComponentClass<CvHtmlPropProps> = React.createClass<CvHtmlPropProps, CvState>({mixins: [CvBaseMixin],getDefaultProps: function () {return {propName: null,defaultValue: null,handler: null,isVisible: null,entityRec: null,paneContext: null,wrapperElemName: 'span',wrapperElemProps: null,overrideValue: null,currencySymbol: '$',percentageSymbol: '%',boolTrueClassName:'cv-icon cv-bool-true',boolFalseClassName: 'cv-icon cv-bool-false',imageActions:null,imageClassName: null,imageStyle: null,imageReadOnly: null,style: null,className: null,renderer: null,dataPropNames:[]}},render: function () {/* We can't do ES7 style rest destructuring in Typescript yet... */const passthroughProps = {propName: this.props.propName,defaultValue: this.props.defaultValue,handler: this.props.handler,isVisible: this.props.isVisible,entityRec: this.props.entityRec,paneContext: this.props.paneContext,wrapperElemName: this.props.wrapperElemName,wrapperElemProps: this.props.wrapperElemProps,overrideValue: this.props.overrideValue,currencySymbol: this.props.currencySymbol,percentageSymbol: this.props.percentageSymbol,style: this.props.style,className: this.props.className,dataPropNames: this.props.dataPropNames,renderer: this.props.renderer}return <CvProp {...passthroughProps}booleanRenderer={(boolVal)=>{return boolVal ? <span className={this.props.boolTrueClassName}/> : <span className={this.props.boolFalseClassName}/>}}binaryRenderer={(binaryUrl)=>{const style = this.props.imageStyle ? this.props.imageStyle : this.props.style;return <CvImage style={style} src={binaryUrl} className={this.props.className} imageClassName={this.props.imageClassName}actions={this.props.imageActions} readOnly={this.props.imageReadOnly}/>}}/>}})

Generated using TypeDoc