@m3nt-67gmail-com

@m3nt-67gmail-com

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Change format function number inputs #103661
    Rafa Esparza
    Participant

    I use locale=”‘es'” but smart-number-input does not have decimalSeparator in the locale attributes nor input attributes.

    in reply to: Change format function number inputs #103658
    Rafa Esparza
    Participant

    i found this solution for the smart-number-input but it does not work in grids with number cell editing.

    // INPUT
    <smart-number-input 
        id="etotartic"
        [numberFormat]="{ style: 'currency', currency: 'EUR', minimumFractionDigits: 2 }" 
        (ngModelChange)="utilService.formatFunctionDotToComma('etotartic', entity.etotartic)">
    </smart-number-input>
    
    // FORMAT FUNCTION
    public formatFunctionDotToComma(fieldId: string, value: any): void {
       if (value !== ''){
         const intValue = parseFloat(value);
         document.getElementById(fieldId)?.setAttribute('value', intValue.toFixed(2).replace('.', ','));
       }
    }
    
    • This reply was modified 1 year, 7 months ago by Rafa Esparza.
    in reply to: Filtering row in grid server side model #103483
    Rafa Esparza
    Participant

    I’m using version “smart-webcomponents-angular”: “^14.0.41” in angular 14 project and the bug continue happenning.
    any ideas?

    in reply to: Filtering row in grid server side model #103338
    Rafa Esparza
    Participant

    Hi, when will be release approximately the patch with this solved?
    Thanks

    in reply to: Form validation on blur #103046
    Rafa Esparza
    Participant

    I’m creating like this. I want to have the input empty in the beginning, but not appears in red.

     this.form = new Smart.Form('#ejemploForm', {
          codigo: ['', {
            validationRules: [
               { type: 'required', message: 'Codigo is required' },
            ]
          }],
          nombre: ['', {
            validationRules: [
              { type: 'required', message: 'Name is required' },
              { type: 'stringLength', min: 2, message: 'First Name requires minimum 2 characters' }
            ],
          }
          ]
        });
Viewing 5 posts - 1 through 5 (of 5 total)