Dropdown - Forum

Forum Navigation
You need to log in to create posts and topics.

Dropdown

How can change the direction  of dropdown from right to left(like whatsapp three dots option menu)?

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim

@asmat use this css:

.dropdown-menu{
   position:absolute!important;
   left:auto;
   right:0px;
}

Regards.

Thank you luishp!

Here I have one more question. I want open the dropdown with another button, it is possible?

I try this command:

ClickObject "Dropdown2"

but it does not work.

Uploaded files:
  • You need to login to have access to uploads.

@asmat, at first sight that's more complex than it seems. This is the JavaScript code that is executed when you press the drop down button:

function(t) {
  var e = a(this);
  if (!e.is(".disabled, :disabled")) {
    var i = l(e),
      o = i.hasClass("open");
    if (s(), !o) {
      "ontouchstart" in document.documentElement && !i.closest(".navbar-nav").length && a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click", s);
      var n = {
        relatedTarget: this
      };
      if (i.trigger(t = a.Event("show.bs.dropdown", n)), t.isDefaultPrevented()) return;
      e.trigger("focus").attr("aria-expanded", "true"), i.toggleClass("open").trigger(a.Event("shown.bs.dropdown", n))
    }
    return !1
  }
}

Not easy...

asmat has reacted to this post.
asmat

Thank you luishp!