Textbox
- Shows textbox.
Features/Functionality
- Shows textbox of min-width: '100px' , min-height: '35px' and width,height as parent.
- Value will be set on blur in inputMdl variable passed.
- Disabled textbox is shown if disable is true.
- Blur event callback will called on blur.
- Placeholder is given in textbox. It can be overridden, by overriding 'placeholder' variable in pageLabels.
- Component is container responsive.
- It is cross browser compatible. (IE11, Edge, Firefox, chrome).
Basic Usage
Dependencies 
- jquery
- shared styles
- shared scripts
HTML Structure
<require from="{user_path}/textboxes/textbox"></require>
<cst-textbox input-mdl.bind="{inputMdl}" options.bind="{options}" style.bind="{style}" other-info.bind="{otherInfo}" ext-disabled.bind="{disabled}" evt-blur-callback.bind="{evtBlurCallback}" validate-callback.bind="{validateCallback}"></cst-textbox>
Bindable Properties 
| Property Name | Data Type | Required | Decription | 
|---|---|---|---|
| inputMdl | any | No | Two way bound variable in which value will be set. | 
| options | object | No | To give other options with pageLabels and color obj | 
| otherInfo | any | No | Extra info to be passed on event. | 
| extDisabled | boolean | No | Disables any functionality on component. | 
| style | object | No | Styles to be given to component. | 
| evtBlurCallback | method | No | Method to be called on blur. | 
| validateCallback | method | No | Method called for validations. | 
Structure of bindable properties
inputMdl
inputMdl = ''    // On pageload default textbox value and will return textbox value
options
options = {
    type: '',               // password, text. Default - text,
    minLength: '',          // Minimum Length
    maxLength: '',          // Maximum Length
    pageLabel: {},          // Override page labels
    pageColorData: {}       // Override css colour porperty
}
style
style = {
    isSmallSize: false,
    isRegularStyle: false   // If given true, regular textbox will be shown with all side borders. Else textbox with only bottom border will be shown.
}
evtBlurCallback
evtBlurCallback(_event,_info);
_info = {
    overrideContext: overrideContext,
    otherInfo: otherInfo,
    value: item
}
CSS Overriding
- Following classes are given to override CSS:- .cst-textbox-container-override : Container Class
- .cst-textbox-element-override: Element Class
 
Note
- While giving the classes in page, give them in nested structure.
Rules
Component measurements

** box-sizing: border-box is used. So width and height will be dimensions + padding.
Working Example
HTML
<template>
  <require from="./shared/core_comp/textboxes/textbox"></require>
  <div>
    <cst-textbox input-mdl.bind="inputMdl" options.bind="options" style.bind="style" other-info.bind="otherInfo" ext-disabled.bind="disabled" evt-blur-callback.bind="evtBlurCallback" validate-callback.bind="validateCallback"></cst-textbox>
  </div>
</template>
CSS
.cst-ex-textbox {
    .cst-textbox-element-override {
        border: 4px solid #ffffff !important;
    }
}
JS
class MyCls{
    constructor(){
        this.inputMdl = 'Enter text';
        this.otherInfo = '';
        this.disabled = false;
    }
    evtBlurCallback(_event, _info) {
    }
}
export { MyCls }
Example Screen Shots
Desktop

IE

Tab

Mobile

Demo Link
Mark down usage  
https://guides.github.com/features/mastering-markdown/
| Version | Date | Developed By | Information Classification | Reviewed By | Approved By | 
|---|---|---|---|---|---|
| 1.0 | 05-11-2019 | Gunjan | INTERNAL | Prasan & Tarun | Prasan |