Jump to content

How to simulate OnClick on TUniFileUploadButton


crystian

Recommended Posts

Hi, 

 

I use custom css for my buttons in the application, and cannot assign a custom css to  TUniFileUploadButton.
If I can simulate a click on TUniFileUploadButton I will put a TUniButton visible, manipulate him and use it to do click on TUniFileUploadButton.

My question is, how can I do it?

Link to comment
Share on other sites

10 minutes ago, crystian said:

I use custom css for my buttons in the application, and cannot assign a custom css to  TUniFileUploadButton.
If I can simulate a click on TUniFileUploadButton I will put a TUniButton visible, manipulate him and use it to do click on TUniFileUploadButton.

Hi,

What CSS do you use for the UniButton?

Link to comment
Share on other sites

4 hours ago, Sherzod said:

Hi,

What CSS do you use for the UniButton?

In my project I use custom css for the buttons change layout appearence.

I just realized that I didn't complete my question in the first post, sorry for that.

I would like to know how to handle the TUniFileUploadButton OnClick event or how to insert CSS into it, similar to what I do in TUniButton.

Link to comment
Share on other sites

16 hours ago, crystian said:

I would like to know how to handle the TUniFileUploadButton OnClick event

Please explain in more details, for what purpose?

16 hours ago, crystian said:

or how to insert CSS into it, similar to what I do in TUniButton.

How do you do for UniButton?

Link to comment
Share on other sites

7 hours ago, Sherzod said:

Please explain in more details, for what purpose?

Due to the impossibility of using the settings I mention below, I intended to make a TUniButton available with the CSS settings I intended to use and keep an invisible TUniFileUploadButton triggering the upload function (if I could simulate his click ...)

 

7 hours ago, Sherzod said:

How do you do for UniButton?

It has several forms. One is by assigning a CSS class in the LayoutConfig properties.

Another is by adding through UniEvents.

TUniFileUploadButton does not have these properties to edit.

---------

Anyway, I already solved my problem by assigning a CSS class to the form that allowed me to make the changes I needed.

Thanks for the feedback.

 

 

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...