Every line of 'how to get label value in javascript' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
670 getLabelValue(state: State) { 671 return state.view.graph.getLabel(state.cell) 672 }
80 function label_id (value) { 81 if (value == null) 82 return null; 83 return value._id; 84 }
263 getLabel(value, record) { 264 if (isFunction(this.label)) return this.label(({ value, record })); 265 return this.label || this.processValue(value, record) || ''; 266 }
145 function _getLabelText(key, obj) { 146 var _lbl = '[' + key + ']'; // Default value 147 148 if( typeof Strings[key.toUpperCase()] !== 'undefined' ) 149 _lbl = Strings[key.toUpperCase()]; 150 else if( typeof Strings[key.toUpperCase()] == 'undefined' && typeof obj !== 'undefined' && typeof obj.label !== 'undefined' ) 151 _lbl = obj.label; 152 153 return _lbl; 154 }// _getLabelText
303 value: function formatLabel(labelValue) { 304 var _props = this.props; 305 var formatLabel = _props.formatLabel; 306 var labelPrefix = _props.labelPrefix; 307 var labelSuffix = _props.labelSuffix; 308 309 if (formatLabel) { 310 return formatLabel(labelValue, { labelPrefix: labelPrefix, labelSuffix: labelSuffix }); 311 } 312 313 return '' + labelPrefix + labelValue + labelSuffix; 314 }
60 function getLabel(element) { 61 let label = element.getAttribute("label"); 62 63 if (label) { 64 return label; 65 } 66 67 let id = element.id; 68 69 if (id in KEY_LABELS) { 70 return KEY_LABELS[id]; 71 } 72 73 // Try to find a menuitem... 74 let menuitem = querySelector(`menuitem[key="${id}"][label]`); 75 return menuitem ? menuitem.getAttribute("label") : id; 76 }
105 function getLabel(_ref) { 106 var label = _ref.label; 107 var breakpoints = _ref.breakpoints; 108 var htmlFor = _ref.htmlFor; 109 var id = _ref.id; 110 var align = _ref.align; 111 112 if (!label) { 113 return; 114 } 115 116 var className = breakpoints ? breakpoints.getLabelClassName() : null; 117 118 return _uvdomBootstrap2['default'].getLabel({ 119 align: align, 120 className: className, 121 htmlFor: htmlFor, 122 id: id, 123 label: label 124 }); 125 }
142 function getLabelValue(inputValue) { 143 labelValue = parseFloat(inputValue.toString()).toFixed(2); 144 145 if (labelValue.toString().length >= 8) { 146 labelValue = parseFloat(labelValue.toString()).toFixed(0); 147 } else if (labelValue.toString().length == 7) { 148 labelValue = parseFloat(labelValue.toString()).toFixed(1); 149 } 150 151 return labelValue; 152 }
776 renderValue: function renderValue(label) { 777 return label; 778 },
11 function labelFor(source, key) { 12 return source.label ? source.label + '.' + key : key; 13 }