Validate Elm

  • Validates any input elm added in replaceable part.

Features/Functionality

  • It will validate the property passed on item.
  • It will also show the errors.
  • Component is container responsive.
  • It is cross browser compatible. (IE11, Edge, Firefox, chrome).

Important Note

  • Donot give same name to variables/methods inside this element as of outer element.

Basic Usage

Dependencies

HTML Structure

<require from="{user_path}/validate_elms/validate_elm"></require>
<cst-validate rule-prop.bind="{property}" item.bind="{item}" controller-instance="{instance}"></cst-validate>

Bindable Properties

Property NameData TypeRequiredDecription
rulePropstringYesProperty on which validation will be triggerred.
itemobjectYesData object on which validations will be applied.
controllerInstanceinstanceYesInstance of Validation Controller
idPrefixstringYesUnique identifier prefix
isInitialTriggerbooleanNoTo trigger validations manually

Rules

Working Example

HTML

<template>
<require from="./shared/custom_comp/validate_elms/validate_elm"></require>
<div>
<cst-validate rule-prop.bind="property" item.bind="item" controller-instance="instance"></cst-validate>
</div>
</template>

JS

class MyCls{
constructor(){
}
}
export { MyCls }

Example Screen Shots

Desktop

Image of Ex


IE Desktop

Image of Ex


Tab

Image of Ex


Mobile

Image of Ex


Demo Link
Demo


Mark down usage
https://guides.github.com/features/mastering-markdown/

VersionDateDeveloped ByInformation ClassificationReviewed ByApproved By
1.004-12-2019GunjanINTERNALPrasan