I have Worklist view that contains a button. That button need to go to another view. How can I accomplish this?
Assuming you have your routes and targets set up in manifest.json you'll want to do somehing like this in your press event handler for the button.
this.getRouter().getTargets().display([TARGET NAME FROM MANIFEST]);
OR
this.getRouter().navTo("NAME OF ROUTE FROM MANIFEST");
Again like others have said this is highly dependent on use case, this is a general idea of what your solution may look like.
Related
I Want to change whole window content after button press. What is the best way to do that? Someting like "Next" button on installers but with custom buttons.
You probably want a GtkStack with your own buttons to change the visible child (but do have a look at GtkStackSwitcher and GtkAssistant for more ready-made but less flexible solutions).
Good Morning,
I an starting working with SAPUI5.
I want to hide a go button of a FilterBar (sap.ui.comp.filterbar.FilterBar)
I can use the method "hideGoButton()"?
How can I use it?
Thank you!
There is a property on the FilterBar control called showGoOnFB.
<fb:FilterBar xmlns:fb="sap.ui.comp.filterbar" showGoOnFB="false">
If you want to hide the Go button dynamically or by using some sort of toggle event, like I assume you want to do based on your mention of hideGoButton() above, you can use an event handler similar to the one in the UI5 Explored sample:
FilterBar samples
Check the code for sample 2. There is a function in there to hide the 'Filter' selector.
I have a general question for GWT Activity and Places paradigm realization
For example, I have a place "productList" and appropriate view ProductListView. A have a table with some Product entity in each row. I wanna to double click on row and got popup window which allow me to edit Product in doubleclicked row. How to implement it? Should I provide new place "editProduct" for this activity?
A popup dialog is not a place - users would not expect to see it when they press the back button. So there is no need to create a special EditProduct place.
You can think of "places" as something that users may want to see when they click on Back or Forward buttons, or something they want to bookmark.
I have a table view and in some of the cells there are links, I want to be allow the user to click on these links and view them in a webView (which I have already made). I don't want to use the row selection event because there may be more than one link in the cell. I came across TTTAttributedLabel and think it will be ideal. I don't need to add any style to the text in the cell, I only need to detect the links and capture the click event to open up my webview.
Any help would be greatly appreciated.
It looks like you can assign a TTTAttributedLabelDelegate to a TTTAttributedLabel that will get call backs for when a user selects different link types, but no opportunity for you to capture them and open your own web view (which I think is what you're trying to accomplish).
Instead, you might wanna check out OHAttributedLabel. It's similar in functionality, but when a user clicks on one of the links in the label, it calls -(BOOL)attributedLabel:(OHAttributedLabel*)attributedLabel shouldFollowLink:(NSTextCheckingResult*)linkInfo on it's OHAttributedLabelDelegate, which gives you the opportunity to handle the link tap yourself if you return NO.
I am trying to make a combobox in ios following this link http://www.codeproject.com/KB/iPhone/iphonecombobox.aspx.
But the click event (that shows the picker) seems to work sometimes and sometimes not. It looks like sometimes it just works in some regions of the control and not others.
Any idea of what is wrong?
It's kind of hacky, but you can add a hidden UIControl around the region of the ComboBox and then wire it up to the same IBAction or void that the existing ComboBox uses. For example, -(IBAction) showPicker could be the action of a new UIControl that you add right around the region.
For some reason, the answer was using the textfield and image directly to the page instead of creating a view for the control and using that view N times.
I created a combobox api for iOS, hope this could be of any help: http://www.chupamobile.com/products/details/365/ZComboBox/