Command Link button type

Started by Huy H., June 23, 2017, 06:29:15 PM

Previous topic - Next topic

Huy H.

Not sure how long this has been there, but today we discovered the "commandLink" button type in the button style attributes.  It looks very nice!

Question 1: This button type is supported in both GDC and GBC (see attached), however, the GBC rendering does not provide the description.  Is there a way to make the description visible in GBC?

Question 2: Is there a way to control the width of the button?  The problem we have is if the description is too long, it will just keep spanning horizontally in a single line.  We would like to limit the maximum width if possible, and any remaining text should wrap onto the next line.

Reuben B.

QuoteNot sure how long this has been there, but today we discovered the "commandLink" button type in the button style attributes.  It looks very nice!

Since 2.21 http://4js.com/online_documentation/fjs-gdc-manual-html/#c_gdc_NewFeatures221.html

In all our documentation you should see New Features and Upgrade guides that go back as far as possible ...

BDL
http://4js.com/online_documentation/fjs-fgl-manual-html/#c_fgl_nf.html
http://4js.com/online_documentation/fjs-fgl-manual-html/#c_fgl_upgrade_guides.html

GDC
http://4js.com/online_documentation/fjs-gdc-manual-html/#c_gdc_nf.html
http://4js.com/online_documentation/fjs-gdc-manual-html/#c_gdc_upgrade_guides.html

GAS
http://4js.com/online_documentation/fjs-gas-manual-html/#c_gas_nf.html
http://4js.com/online_documentation/fjs-gas-manual-html/#c_gas_upgrade_guides.html

GST
http://4js.com/online_documentation/fjs-gst-manual-html/#c_gst_nf.html
http://4js.com/online_documentation/fjs-gst-manual-html/#c_gst_config_migrationnotes_intro.html

etc

... I strongly encourage all senior developers to re-read these every so often just to remind yourself what else has been introduced into the product base over the years.

For your other questions,

QuoteIs there a way to make the description visible in GBC?

Hover your mouse over the button, although that raises question how you do that with a tablet!

I'm not sure why the GBC wouldn't have followed the Microsoft standard here, although looking at Material Design notes on button, https://material.io/guidelines/components/buttons.html# it doesn't really cater for that case. 

It is the type of thing that would be a good GBC customisation exercise if you really wanted to display the description

QuoteQuestion 2: Is there a way to control the width of the button? 

did you experiment adding a back-slash n into your comment attribute to force a line break?

Otherwise, SIZEPOLICY=FIXED vs SIZEPOLICY=DYNAMIC was my initial thought, although a quick play suggests it wasn't being taken into account.

Reuben
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero