Jump to content

theaha

uniGUI Subscriber
  • Posts

    12
  • Joined

  • Last visited

Posts posted by theaha

  1. 13 hours ago, Sherzod said:

    Hello,

    Can you try this approach?

    function beforeInit(sender, config)
    {
        config.maxDate = Ext.Date.format(new Date(), config.dateFormat);
    }

     

    Hi, I try this but it set only max year.
    unid.jpg.d26ebbd5d990c472c3349905bec3a1ca.jpg

     

    13 hours ago, Sherzod said:

    How can we reproduce this issue?

    I add items normally like this

    UnimSelect1.Items.Add("Test Text");

    but when add long text, text appears overlapped

  2. 15 hours ago, Sherzod said:

    Try this approach:

    procedure TUnimForm1.UnimFormReady(Sender: TObject);
    begin
      UnimFileUploadButton1.JSInterface.JSConfig('maxSize', [1000]); //bytes
    
      UnimFileUploadButton1.JSInterface.JSCode(#1+
            '.addBeforeListener("change", function(a, b) {'+
            '  isValid = true;'+
            '  for (i = 0; i < a.getFiles().length; i++) {'+
            '      if (a.getFiles()[i].size > '#1'.maxSize) {'+
            '          isValid = false;'+
            '          Ext.Msg.alert('+
            '              "MaxSize = " + '#1'.maxSize,'+
            '              a.getFiles()[i].name + ": " + '#1'.maxSizeError'+
            '          );'+
            '          return false'+
            '      }'+
            '  }'+
            '  return isValid;'+
          '});'
      );
    end;

     

    Nice Work! Thank you.

    • Thanks 1
×
×
  • Create New...