Is it possible to use an external button to add file using Dropzone plugin?
I found this documentation but it doesn't answer my question.Indeed, I can't be able to add file using an handler event such as click. Is there a solution?
I guess you want your button to have the clickable option, isn't it?
If so you should configure your Dropzone for this like that:
Dropzone.options.validationForm = {
clickable: "#your_button_id",
//rest of your code
}
If it isn't the answer you're looking for maybe you could try explain better what you want or put a snippet of your code :)
Related
Not found PushPopupPageAsync
_navigationService.PushPopupPageAsync( "MyPopupPage" );
I am using Rg.Plugin.Popup along withg Prism
but PushPopupPageAsync not available on INavigationService
how to solve it?
Are you sure that you should be calling PushPopupPageAsync? Rg.Plugin.Popup extends the Navigation service with PushPopupAsync - note there is no Page in the name.
To be able to use PushPopupAsync you also need to have:
using Rg.Plugins.Popup.Extensions;
in the source file where you want to call PushPopupAsync
Its easier to use the Prism.Plugin.Popups made by the Prism maintainer, then you can just use the standard NavigateAsync method:
_navigationService.NavigateAsync("MyPopupPage")
With this, te page is pushed as a popup with Rg.Plugin.Popup. (of course you have to target a PopupPage to make this works)
I am new to eventBus() function in SAPUI5.
I am using eventBus.publish() in Table.view.js controller to publish data & have used eventBus.subscribe() in MainPage.view.js controller. It is working fine.
But while I try to implement eventBus.subscribe() in another controller ("Feed.view.js"), it is not working. Why is it so?
The cause of you problem is likely one of the following:
You are not using the same EventBus in all cases (e.g. in one case
you use the sap.ui.getCore().getEventBus(), and in another case you
use your component's oComponent.getEventBus())
You are not using the same channel
You are not using the same event ID
Please check this, and if it doesn't help post more of your code.
I'm using VS2013/CodedUI and my palybacksetting is as follow:
Playback.PlaybackSettings.LoggerOverrideState = HtmlLoggerState.AllActionSnapshot;
I also have a 3rd party tool that I have integrated to my code that does some action that codedui can't...Iw an to be able to log those steps into the ActionLog.html file with where codedui capture the actions and screenshot.
I searched a lot but didn't find anything on how we can achieve this.
thanks in advance for any help
I posted a response over here: Writing Custom HTML Logs
It sounds like there's not a good way to do this. You can get the path to where the html file lives and write a custom logger from there. I'm not sure it'd be safe to try and write to it while your test is executing, but perhaps once your test is complete.
I have a problem similar to this question: Wicket: can Checkgroup be Ajax enabled?
I'm using a ListView where each Item has a checkbox. I also have a "select all" checkbox. I am using a CheckGroup, CheckGroupSelector and Check and everything works great. Now there is a new requirement to change the state on some other controls on the page when the checkboxes are updated.
Nicktar's suggestion in the above linked question was the first that came to my mind, too, but I haven't been able to find out how it is possible to use AjaxCheckBox with CheckGroup/CheckGroupSelector. According to the doc you have to use Check.
But in this mail from 2008, Igor Vaynberg also states that it is possible to use AjaxCheckBox in a CheckGroup.
I tried it with just replacing where I used Check with the AjaxCheckBox, but it didn't work, the CheckGroupSelector didn't find the checkboxes anymore.
I also looked into using the onSelectionChanged method in CheckGroup, but I'd like to avoid using this as it triggers another roundtrip to the server, as far as I understood.
Can someone give me a hint? Or is there another nice solution for this?
By the way, I'm using Wicket 1.4.
Why can't you add an AjaxFormChoiceComponentUpdatingBehavior to the CheckGroup ?
From AjaxFormComponentUpdatingBehavior's JavaDoc:
NOTE: This behavior does not work on Choices or Groups use the AjaxFormChoiceComponentUpdatingBehavior for that.
AjaxFormChoiceComponentUpdatingBehavior is the behavior to use with CheckGroups and RadioGroups. If you used an AjaxFormComponentUpdatingBehavior with the onchange event, you'd run into this bug with IE
. AjaxFormChoiceComponentUpdatingBehavior handles this properly, adding onclick event handlers to each of the Checks in the CheckGroup.
As a side note, what Igor stated in that mail, is that CheckBox can be replaced with AjaxCheckBox, not Check. AjaxCheckBox is nothing more than a convenience subclass of CheckBox with an AjaxFormComponentUpdatingBehavior("onclick"), as the sources show.
The localscroll jquery plugin has an onBefore option which allows you to specify a function to execute before the animation but it doesn't have one for after the animation. The plugin looks pretty simple and I'm sure it would be a 5 minute job for someone who knows what theyre doing but I dont!
Its ok you can actually put onAfter it just wasnt documented but the functionality is there