Is there any component like reply to post/blog in sencha touch 2 for giving any reply?
(for clearing question: component like, if we click to reply button then it will show box with subject and data etc)
You would have to implement it yourself, but it wouldn't be too difficult.
You would simply create a view which has a textareafield in it. You would show this view when you tap on a button, and then call field.setValue() with the predefined value you want to add.
Related
Tell us about Dailogflow.
In the settings of Intents, it was set to display the Carousel card of GoogleAssistant in the response.
I've been able to display the carousel card, but I want to select one of these cards by voice action and open the URL set for that card.
I couldn't find it in the reference, so please let me know if there is a way to achieve this.
If this is not possible, is there any other way to achieve equivalent content?
I don't have good English.Thank you for reading.
You can use follow up intent. So when you are displaying a list or carousel card and you want to make this selection by click and as well as by user utterance. You have to add two follow up intent one for selection one for text utterance.
consider below example: ShippingOption intent displays a list and that can be selectable as well as get the response by user utterance.
app.js
intentMap.set("shippingOptionIntent", shippingOptionIntent);
intentMap.set("shippingOptionIntent - select", shippingOptionIntentSelect);
intentMap.set("shippingOptionIntentChoose", shippingOptionIntentChoose);
Now set the utterance for followup intent:
Where another followup intent responsible for user selection by clicking on the option. It has the google assistant option event.
So, in this way you can handle both types of responses.
I have a simple Aurelia application that displays accounts. The default view is a list of accounts. There's also an account details view.
I'd to make the details view open in a modal/dialog over the top of the list view. However, I want the presence of the modal to show up as part of the URL.
I found it easy to use the aurelia-dialog plugin to display the details view, but can't figure out how to get the dialog's presence to show up in the URL.
Another option might be to throw out aurelia-dialog and use a child router to display the details view, then figure out how to make that show and hide as a modal.
And, of course, another possibility is that there's a better way that I just don't see yet.
Has anybody seen or created something like this?
One possibility that occurs to me would be to add the dialog's presence as a parameter to the current route and then call it. You could use the route like /account?dialog=true. Run some tests to ensure that the ?dialog=true still routes to the same page. Then, use that route to check whether that parameter is set and display or hide the dialog window. When you refresh the page, the dialog window should still be open/closed. This also means that whenever you open or close the dialog window, you need to send a new route to the router (basically same route but different parameter).
This isn't a detailed solution but might get you on the right path.
We have a Facebook app here which has three boxes with three buttons. Each button, when clicked, should change state once an event (successfully) happens. The buttons are almost all working (a few minor bugs) but they have been done a rather long-winded and inefficient way.
My question is, what is the most efficient way to link events (i.e. page 'liked', personal information submitted, page 'shared') with the state of the buttons?
You can use jQuery and the .trigger() function to fire off events. Then you can use .bind() to listen to the events and do something. For example, when the user logs in, you can trigger a user_logged_in_event, and bind to it. In the function, you can then use JS to change the login button to logout...
I'm trying to do last example in this page
http://docs.sencha.com/touch/2-0/#!/guide/nested_list
and i'm using sencha architect but in the example i have to give a reference to the nestedlist to use detail card of the container however i can't do it because i can't edit the code in sencha architect. What should i do to give a reference in nested list to use container and detail card ?
You can create a custom view to show record details and show it on a leafitemtap event of the nestedlist. For example you can write an event handler including something like:
var details = Ext.create('App.view.RecordDetail');
//lets say txtRecord is a text field in RecordDetail view
Ext.getCmp('txtRecord').setValue(record.get('text'));
Ext.Viewport.setActiveItem(details);
Also you can have a toolbar containing a back button on your details view for navigating back to the nested list. Or alternatively you can take a look at Ext.navigation.View for automatic navigation.
I've successfully implemented a Bar chart; now I would like to trap the user touch. I've tried by using Interactions but cannot get the clicked item.
you have to create your own function in touch-charts-debug.js and refer that function in interactions instead of type:'iteminfo' in your chart.
I have tried with this option it works fine for me As am able to show drill down chart on tapping the bar.
The sencha-charts that I can find online say they use HTML5. If that is the case then you should be able to capture it like a mouse click except using touchstart, touchmove, touchend, and more.
http://www.html5rocks.com/en/mobile/touch.html#toc-events
Ah, just read. They also use jqtouch:
http://jqtouch.com/
according to http://www.sencha.com/blog/introducing-sencha-touch-html5-framework-for-mobile/
Here are some examples for getting an event with jqtouch:
http://code.google.com/p/jqtouch/wiki/CallbackEvents