Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Command Link button type  (Read 5877 times)
Huy H.
Posts: 45


« on: June 23, 2017, 06:29:15 pm »

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.


* buttons_gdc.PNG (21.27 KB, 484x372 - viewed 1274 times.)

* buttons_gbc.PNG (15.2 KB, 254x332 - viewed 1260 times.)
Reuben B.
Four Js
Posts: 1062


« Reply #1 on: June 26, 2017, 01:13:39 am »

Quote
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!

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,

Quote
Is 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

Quote
Question 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
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines