Can I create a normal button while using foundation? - zurb-foundation

This is the code I'm using to create a button:
<button type="button">Click Me!</button>
And the button being created is the same as the default button that Foundation creates for you.
Is it possible to reset Foundation's style and make the button looks like a browser default one?

Related

Foundation 6 drilldown menu: add back event to custom button

The default js-drilldown-back button is not the way I like it.
Instead of having an entire li element for the back functionality I would like to trigger the back event on a custom element.
How to achieve this?
The documentation is everything but clear to me on how to do it: https://get.foundation/sites/docs/drilldown-menu.html#_back
$('#element').foundation('_back', $elem);
What is #element and what is $elem in this context?
For the time being I created an (ugly) workaround:
I let foundation render the default back button but I hide it via css.
My custom back button then triggers that button's event:
$('.drilldown .back').on('click', function(){
$(this).closest('.submenu').find('.js-drilldown-back > a')[0].click();
});
Not great, not terrible.

IgGrid - How to connect custom feature chooser to the grid?

In my project I use igGrid from ignite-ui. In headers of columns there are gears. If user clicks gear then a popover apears (feature chooser). My task is to implement custom feature chooser - when user clicks on the gear then my custom feature chooser should apear instead of the built-in feature chooser.
I know how to implement the custom feature chooser and options like sorting, grouping, column moving etc. The problem is that I can't find out how to overwrite the gear click event.
You'll have to find the gear icons and unbind mousedown event to prevent feature chooser to pop up.
After that you can bind to mousedown using custom handler to show the custom feature chooser.
rendered: function(e, ui) {
ui.owner.headersTable()
.find("a[data-fc-button]")
.off("mousedown")
.on("mousedown", (e) => {
//open your own featurechooser here
});
},
Here's a fiddle to demonstrate this - http://jsfiddle.net/dkamburov/da276b5w

How to Use hypertext in wxwidgets

I need to create a underlined label in a form using wxWidgets. When user clicks on that label I have to execute 1 function. Can we create such hypertext in wxwidgets? Now I am using a button for this, when user clicks on button some event is triggered. But instead of button underlined label will look too good.
#aromahola,
Look up wxHyperLink in the wx documentation.
The class you want is wxHyperLinkCtrl.

Ionic2 always show left menu

I am working on an mobile app with Ionic2. When I navigate using navController.push(SomePage) method, I get back button. I want to show left menu button always and disable back button. How can I achieve that?
Thanks and Regards
You can use hideBackButton attribute to hide the back button when push is used.
Ref - https://ionicframework.com/docs/api/components/navbar/Navbar/
For example:
<ion-header>
<ion-navbar hideBackButton>
...
</ion-navbar>
</ion-header>
Ok so I figured out that rather to use
navController.setRoot(somePage);
with parameter
navController.setRoot(somePage, {"id" : 123});

How to call IShellFolder::EnumObjects externally in a shell extension

I have created a Windows Shell Extension similar to Google's GDrive. Now I want to add different views to the ListView that inherits from IShellView. A new context menu has been added to to display 3 views (Details, Small Icon, Large Icon). When a view is changed using the context menu, the current window needs to be refreshed/created to display the changed view.
In my IShellFolder::EnumObjects, a new ListView object is created and OnCreate is called automatically. I need to call this method when I change view using the context menu also. I guess there might be some API like SHChangeNotify() that can all the EnumObjects() automatically and a new IShellView window will be created with the changed view.
As i understood from your question, you need the same contents to be viewed in listview but with the new view.
You don't need to recreate the Listview object after the new view mode selection, Just set the ListView's style to LVS_REPORT, LVS_SMALLICON, or LVS_ICON.
SHChangeNotify is used to reflect the change to the tree pane not the ListView.