Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

label.component.js 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. var Unibase;
  2. (function (Unibase) {
  3. let Forms;
  4. (function (Forms) {
  5. let Controls;
  6. (function (Controls) {
  7. class Label {
  8. init(formpropertyid, prop, callback) {
  9. var instance = Label.Instance();
  10. instance.loadControlSettings(prop.ControlJsonText, prop.FormPropertyId);
  11. instance.loadPropertySettings(prop.PropertySettings, prop.FormPropertyId);
  12. if (callback != null)
  13. callback();
  14. }
  15. loadControl(containerid, prop) {
  16. var html = '<div class="floating-label-form-group div_lbl" id="lblDiv_' + prop.FormPropertyId + '">' +
  17. '<label for="lbl" id="lbl_' + prop.ControlId + '" class="lbl_' + prop.FormPropertyName + '" > 0 </label>' +
  18. '<input type="hidden" id="hf_' + prop.ControlId + '" />' +
  19. '</div>';
  20. $("#" + containerid).html(html);
  21. }
  22. loadControlSettings(controlsettingjson, formpropertyid) {
  23. return null;
  24. }
  25. loadPropertySettings(propertysettings, formpropertyid) {
  26. if (propertysettings != null) {
  27. }
  28. }
  29. bindEditFormDetails(formpropertyid, propval, DocPropertyName) {
  30. $("#lbl_" + formpropertyid).val(propval);
  31. if (propval != "") {
  32. $("#lbl_" + formpropertyid).addClass("floating-label-form-group-with-value");
  33. }
  34. }
  35. static Instance() {
  36. if (this.instance === undefined) {
  37. this.instance = new Label();
  38. }
  39. return this.instance;
  40. }
  41. }
  42. Controls.Label = Label;
  43. })(Controls = Forms.Controls || (Forms.Controls = {}));
  44. })(Forms = Unibase.Forms || (Unibase.Forms = {}));
  45. })(Unibase || (Unibase = {}));