I was wondering how can I create these buttons. All the timing is dynamic and is received from a server, also the number of buttons will vary.
It would be a big help if some one can provide me with some directions.
Retrieve the list items and build a grid and wrap the gridtiles with an Inkwell... You can achieve any user input action with onTap() or longpress()
Related
I want to use an AnyLogic’s controls such as Combo box and Radio Buttons for changing a parameter from the start. But now I can change the parameter only after the simulation is started. I want Anylogic at first show me the Radio Buttons and I choose the parameter and after that, I start the run.
Do you have any solutions?
This is what Experiment objects are for. Please learn how to use them via the tutorials and the help
Essentially, create parameters on Main and replicate them on experiment screens with variables and radio buttons linked to those. Then you can feed the user values to your Main using the experiment properties (section "Parameters").
Note that it is slightly different with cloud experiment setups.
I have tried to create custom components which are subsets of slides. I'm trying to create a custom Ionic component which is a subset of slides. Then I can mix and match subsets of slides in one to make a complete slide show. Like building a master process from sub-processes. You should be able to swipe back and forth between all slides as expected, no matter an directly in the component, or slides within custom components.
I've tried various methods to no avail. Any ideas?
PLEASE SEE THIS SAMPLE PROJECT WITH 2 METHODS I HAVE TRIED TO ACCOMPLISH THIS.
No. You can't do this. You can put a into another if one scrolls vertically and one horizontally. You can insert a custom component into an which just has a couple slides in it, put the inserted slides show one over the other vertically with no way to swipe back and forth. So, no. You can't do this. Perhaps with dynamic templates you can build the from code dynamically. That's the only work around I can see.
We have this scenario in which we would like to use the same ui5 application for 2 different Launchpad tiles. When user clicks on first tile all the data should be displayed in Smart table but when user clicks on second tile same table will be used but before displaying the content some filter will be applied and less data will be shown.
I am thinking of get the tile ID and according to the tile , I will apply the filter. How it can be achieved ?
Regards,
MS
Multiple tile
once you have added tile use press event to call function and provide event as parameter to that function.Using below line You can get title OR use _getTileIndex() and accordingly you can apply filter
sap.ui.getCore().byId(oEvent.getParameters().id).getTitle()
I have a MVP type application where I will have a view that contains one or more buttons. The number of buttons is not known till run time and may vary each time the page is rendered. What is the best way to approach this apart from a simple loop that will just display 1 - n number of buttons that are passed to the view?
My suggestion: Add all the buttons on creation and use CSS to hide or show them dynamically. I think this will yield less DOM manipulations and still works the same, also it might produce a simpler code. I currently do it that way using SmartGwt.
I have a cellTable with 5-6 columns. I want to put a plus icon in each row on clicking of which will display the details maybe in a disclosure panel. I have been looking around for a while now and I cannot find any information on how to achieve this. Could someone point me in the right direction?
i suspect i probably have to add a cellTree to the column? how do i go about this?
Thank you for your response in advance.
There is work in progress to allow expandable rows in CellTable among other features (maybe GWT 2.3). You can see more details here:
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/b4a8a6e3c98ac061#
If that is not enough or you can not wait untill it is released I can think of two ways to achieve it:
As you said, using a CellTree.
Creating a custom cell that stores
state (open/close). Depending on the
state the cell will render
differently. In same way it is
similar to how EditTextCell works, in
"edit" state it renders an input
field while in "normal" state it renders
simple text.
I'm trying to do that too ... I managed to mimic that functionality toying with the html and a custom cell class that allows clickable pictures.
It is working for normal content such as text but if you'd like to get an asynchronous data to show in the expended line, I don't know how to do it ... (I'm trying to do exactly that).
Also, it doesn't look good because the columns don't align well ...
So what I've done is:
- create a custom cell class to display a picture (right pointing triangle, looking like the triangle in the disclosure panel)
In the click event get the HTML code of the selected row and copy it. Replace the content of the row (all cells) in the table with only one cell with its colspan set to number of columns. In the cell, add a table with first line the copied row and second line the content to display as expanded.
Get the image to sink an event for closing. In event, reset the original row that we copied.
I hope it helps.