align microflow settings (button vs listview vs clickable container) - Mendix Forum

align microflow settings (button vs listview vs clickable container)

10

sometimes we need to use a button css hack because listview and containers have less microflow options then buttons do.

this seems wierd.

 

 

asked
2 answers

we were running into the same double click issue.

we got around this by removing the microflow action from the list view and putting it on a button.

the buttons goes 100% width and height with an opacity of 0.

add this to the sass.
 

.cs_btn-hack{
  position: relative;
  button.btn.mx-button.btn-default{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
  }
}

place a container in the listview so it can get the relative position and add the class “cs_btn-hack”
and place a default button in this container and it should all work.

:D 

Created

What is the “hack” you’re using?  Currently, I’m trying to prevent a microflow from being executed when a user double clicks on a list view item.  I’ve tried using a Javascript snippet with JQuery to prevent double clicks, but so far I’ve had no luck.

Created