Sourceꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯇꯧꯕꯥ꯫
ꯕꯨꯇꯁ꯭ꯠꯔꯥꯞ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯄ꯭ꯂꯒꯏꯅꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯂꯤꯉ꯭ꯀꯁꯤꯡꯒꯤ ꯂꯤꯁ꯭ꯇꯁꯤꯡ ꯑꯃꯁꯨꯡ ꯑꯇꯩ ꯍꯦꯟꯅꯥ ꯎꯠꯅꯕꯒꯤꯗꯃꯛ ꯀꯟꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯑꯣꯚꯔꯂꯦꯏꯁꯤꯡ ꯇꯣꯒꯜ ꯇꯧ꯫
ꯑꯣꯚꯔꯚꯤꯌꯨ ꯇꯧꯕꯥ꯫
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡ ꯑꯁꯤ ꯇꯣꯒꯜ ꯇꯧꯕꯥ ꯌꯥꯕꯥ, ꯂꯤꯉ꯭ꯀꯁꯤꯡꯒꯤ ꯂꯤꯁ꯭ꯇꯁꯤꯡ ꯎꯠꯅꯕꯒꯤꯗꯃꯛ ꯀꯟꯇꯦꯛꯁꯆꯨꯑꯦꯜ ꯑꯣꯚꯔꯂꯦꯏꯁꯤꯡ ꯑꯃꯁꯨꯡ ꯑꯇꯩ ꯀꯌꯥ ꯑꯃꯅꯤ꯫ ꯃꯈꯣꯌ ꯑꯁꯤ ꯌꯥꯑꯣꯔꯤꯕꯥ ꯕꯨꯠꯁ꯭ꯠꯔꯥꯞ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇ ꯄ꯭ꯂꯒꯏꯅꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯏꯟꯇꯔꯦꯛꯇꯤꯕ ꯑꯣꯏꯍꯜꯂꯤ꯫ ꯃꯈꯣꯌ ꯑꯁꯤ ꯀ꯭ꯂꯤꯛ ꯇꯧꯗꯨꯅꯥ ꯇꯣꯒꯜ ꯇꯧꯏ, ꯍꯣꯚꯔ ꯇꯧꯗꯨꯅꯥ ꯅꯠꯇꯦ; ꯃꯁꯤ ꯏꯟꯇꯦꯟꯁꯅꯦꯜ ꯗꯤꯖꯥꯏꯅꯒꯤ ꯋꯥꯔꯦꯞ ꯑꯃꯅꯤ .
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡ ꯑꯁꯤ ꯊꯥꯔꯗ ꯄꯥꯔꯇꯤ ꯂꯥꯏꯕ꯭ꯔꯦꯔꯤ ꯑꯃꯗꯥ ꯁꯦꯃꯒꯠꯂꯤ, Popper.js , ꯃꯁꯤꯅꯥ ꯗꯥꯏꯅꯥꯃꯤꯛ ꯑꯣꯏꯕꯥ ꯄꯣꯖꯤꯁꯟ ꯑꯃꯁꯨꯡ ꯚꯤꯎꯄꯣꯔꯠ ꯗꯤꯇꯦꯛꯁꯟ ꯄꯤꯔꯤ꯫ ꯕꯨꯇꯁ꯭ꯠꯔꯥꯄꯀꯤ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯃꯃꯥꯡꯗꯥ popper.min.js ꯁꯣꯌꯗꯅꯥ ꯌꯥꯑꯣꯍꯅꯕꯤꯌꯨ ꯅꯠꯔꯒꯥ Popper.js ꯌꯥꯑꯣꯕꯥ bootstrap.bundle.min.js
/ bootstrap.bundle.js
ꯁꯤꯖꯤꯟꯅꯕꯤꯌꯨ. Popper.js ꯑꯁꯤ ꯗꯥꯏꯅꯥꯃꯤꯛ ꯑꯣꯏꯕꯥ ꯄꯣꯖꯤꯁꯟ ꯇꯧꯕꯒꯤ ꯃꯊꯧ ꯇꯥꯗꯕꯅꯥ ꯃꯔꯝ ꯑꯣꯏꯗꯨꯅꯥ ꯅꯦꯚꯕꯥꯔꯁꯤꯡꯗꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡ ꯄꯣꯖꯤꯁꯟ ꯇꯧꯕꯗꯥ ꯁꯤꯖꯤꯟꯅꯗꯦ꯫
ꯀꯔꯤꯒꯨꯝꯕꯥ ꯅꯍꯥꯛꯅꯥ ꯑꯩꯈꯣꯌꯒꯤ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇ ꯑꯁꯤ ꯁꯣꯔꯁꯇꯒꯤ ꯁꯦꯃꯒꯠꯂꯕꯗꯤ, ꯃꯁꯤꯗꯥutil.js
.
ꯑꯦꯛꯁꯦꯁꯤꯕꯤꯂꯤꯇꯤ ꯂꯩꯕꯥ꯫
WAI ARIA ꯁ꯭ꯇꯦꯟꯗꯔꯗꯅꯥ ꯇꯁꯦꯡꯕꯥ role="menu"
ꯋꯤꯖꯇꯦꯝ ꯑꯃꯥ ꯗꯤꯐꯥꯏꯟ ꯇꯧꯏ , ꯑꯗꯨꯕꯨ ꯃꯁꯤ ꯑꯦꯛꯁꯅꯁꯤꯡ ꯅꯠꯠꯔꯒꯥ ꯐꯉ꯭ꯀꯁꯅꯁꯤꯡ ꯇ꯭ꯔꯤꯒꯔ ꯇꯧꯕꯥ ꯑꯦꯞꯂꯤꯀꯦꯁꯅꯒꯨꯝꯕꯥ ꯃꯦꯅꯨꯁꯤꯡꯗꯥ ꯑꯀꯛꯅꯕꯥ ꯑꯣꯏ꯫ ꯑꯦ.ꯑꯥꯔ.ꯑꯥꯏ.ꯑꯦ.ꯒꯤ ꯃꯦꯅꯨꯁꯤꯡꯗꯥ ꯃꯦꯅꯨ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ, ꯆꯦꯀꯕꯣꯛꯁ ꯃꯦꯅꯨ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ, ꯔꯦꯗꯤꯑꯣ ꯕꯇꯟ ꯃꯦꯅꯨ ꯑꯥꯏꯇꯦꯃꯁꯤꯡ, ꯔꯦꯗꯤꯑꯣ ꯕꯇꯟ ꯒ꯭ꯔꯨꯄꯁꯤꯡ, ꯑꯃꯁꯨꯡ ꯁꯕ-ꯃꯦꯅꯨꯁꯤꯡ ꯈꯛꯇꯃꯛ ꯌꯥꯑꯣꯕꯥ ꯌꯥꯏ꯫
ꯃꯥꯌꯀꯩ ꯑꯃꯔꯣꯃꯗꯥ, ꯕꯨꯠꯁ꯭ꯠꯔꯥꯄꯀꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡ ꯑꯁꯤ ꯖꯦꯅꯦꯔꯦꯜ ꯑꯣꯏꯅꯥ ꯑꯃꯁꯨꯡ ꯃꯈꯜ ꯀꯌꯥꯒꯤ ꯐꯤꯚꯃꯁꯤꯡ ꯑꯃꯁꯨꯡ ꯃꯥꯔꯀꯑꯥꯞ ꯁ꯭ꯠꯔꯀꯆꯔꯁꯤꯡꯗꯥ ꯑꯦꯞꯂꯤꯀꯦꯕꯜ ꯑꯣꯏꯅꯥ ꯗꯤꯖꯥꯏꯟ ꯇꯧꯕꯅꯤ꯫ ꯈꯨꯗꯝ ꯑꯣꯏꯅꯥ, ꯑꯍꯦꯅꯕꯥ ꯏꯅꯄꯨꯠꯁꯤꯡ ꯑꯃꯁꯨꯡ ꯐꯣꯔꯝ ꯀꯟꯠꯔꯣꯂꯁꯤꯡ ꯌꯥꯑꯣꯕꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡ ꯁꯦꯝꯕꯥ ꯌꯥꯏ, ꯃꯈꯣꯌꯁꯤꯡ ꯑꯗꯨꯗꯤ ꯁꯥꯔꯆ ꯐꯤꯜꯗꯁꯤꯡ ꯅꯠꯠꯔꯒꯥ ꯂꯣꯒꯏꯟ ꯐꯣꯔꯃꯁꯤꯡꯅꯤ꯫ ꯃꯔꯝ ꯑꯁꯤꯅꯥ, ꯕꯨꯠꯁ꯭ꯠꯔꯥꯄꯅꯥ ꯑꯆꯨꯝꯕꯥ ARIA ꯃꯦꯅꯨꯁꯤꯡꯒꯤꯗꯃꯛꯇꯥ ꯃꯊꯧ ꯇꯥꯕꯥ role
ꯑꯃꯁꯨꯡ ꯑꯦꯠꯔꯤꯕ꯭ꯌꯨꯠ ꯑꯃꯠꯇꯥ ꯑꯦꯛꯁꯄꯦꯛꯇ ꯇꯧꯗꯦ (ꯅꯠꯔꯒꯥ ꯑꯣꯇꯣꯃꯦꯇꯤꯛ ꯑꯣꯏꯅꯥ ꯍꯥꯄꯆꯤꯜꯂꯣꯏ)꯫ ꯑꯣꯊꯣꯔꯤꯇꯤꯁꯤꯡꯅꯥ ꯃꯈꯣꯌ ꯃꯁꯥꯅꯥ ꯍꯦꯟꯅꯥ ꯑꯀꯛꯅꯕꯥ ꯑꯦꯠꯔꯤꯕ꯭ꯌꯨꯠꯁꯤꯡ ꯑꯁꯤ ꯌꯥꯑꯣꯍꯅꯒꯗꯕꯅꯤ꯫aria-
ꯑꯗꯨꯝ ꯑꯣꯏꯅꯃꯛ, ꯕꯨꯠꯁ꯭ꯠꯔꯥꯄꯅꯥ ꯑꯌꯥꯝꯕꯥ ꯁ꯭ꯇꯦꯟꯗꯔꯗ ꯀꯤꯕꯣꯔꯗ ꯃꯦꯅꯨ ꯏꯟꯇꯔꯦꯛꯁꯅꯁꯤꯡꯒꯤꯗꯃꯛ ꯕꯤꯜꯇ-ꯏꯟ ꯁꯄꯣꯔꯠ ꯍꯥꯄꯆꯤꯜꯂꯤ, .dropdown-item
ꯃꯗꯨꯗꯤ ꯀꯔꯁꯔ ꯀꯤꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯗꯨꯅꯥ ꯃꯤꯑꯣꯏ ꯑꯃꯃꯃꯒꯤ ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯒꯤ ꯃꯔꯛꯇꯥ ꯆꯠꯊꯣꯛ-ꯆꯠꯁꯤꯟ ꯇꯧꯕꯥ ꯉꯝꯕꯥ ꯑꯃꯁꯨꯡ ꯀꯤ ꯑꯗꯨꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯃꯦꯅꯨ ꯑꯗꯨ ꯂꯣꯗ ꯇꯧꯕꯥ ESCꯉꯝꯕꯅꯤ꯫
ꯈꯨꯗꯃꯁꯤꯡ꯫
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯒꯤ ꯇꯣꯒꯜ (ꯑꯗꯣꯃꯒꯤ ꯕꯇꯟ ꯅꯠꯠꯔꯒꯥ ꯂꯤꯉ꯭ꯛ) ꯑꯃꯁꯨꯡ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨꯒꯤ ꯃꯅꯨꯡꯗꯥ .dropdown
, ꯅꯠꯠꯔꯒꯥ position: relative;
. ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡ ꯑꯁꯤ ꯅꯍꯥꯛꯀꯤ ꯄꯣꯇꯦꯟꯁꯤꯑꯦꯜ ꯗꯔꯀꯥꯔ ꯑꯣꯏꯕꯁꯤꯡꯗꯨ ꯍꯦꯟꯅꯥ ꯐꯅꯥ ꯆꯨꯃꯊꯣꯛꯅꯕꯥ <a>
ꯅꯠꯠꯔꯒꯥ ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯗꯒꯤ ꯇ꯭ꯔꯤꯒꯔ ꯇꯧꯕꯥ ꯌꯥꯏ꯫<button>
ꯁꯤꯉ꯭ꯒꯜ ꯑꯃꯍꯦꯛꯇꯕꯨ .btn
ꯃꯥꯔꯀꯑꯥꯞ ꯍꯣꯡꯗꯣꯀꯄꯥ ꯈꯔꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯇꯣꯒꯜ ꯑꯃꯗꯥ ꯑꯣꯟꯊꯣꯀꯄꯥ ꯌꯥꯏ꯫ ꯃꯈꯣꯌꯕꯨ ꯃꯇꯧ ꯀꯔꯝꯅꯥ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯍꯦꯛꯇꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯊꯕꯛ ꯇꯧꯕꯥ ꯌꯥꯕꯒꯦ ꯍꯥꯌꯕꯗꯨ ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤ <button>
:
ꯑꯃꯁꯨꯡ <a>
ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ:
ꯈ꯭ꯕꯥꯏꯗꯒꯤ ꯐꯕꯥ ꯋꯥꯐꯃꯗꯤ ꯅꯍꯥꯛꯅꯥ ꯃꯁꯤ ꯕꯇꯟ ꯚꯦꯔꯤꯑꯦꯟꯇ ꯑꯃꯍꯦꯛꯇꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯇꯧꯕꯥ ꯌꯥꯏ, ꯃꯗꯨꯁꯨ:
ꯃꯇꯧ ꯑꯁꯨꯝꯅꯥ, ꯁꯤꯉ꯭ꯒꯜ ꯕꯇꯟ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡꯒꯥ ꯌꯥꯝꯅꯥ ꯃꯥꯟꯅꯕꯥ ꯃꯥꯔꯀꯑꯥꯄꯀꯥ ꯂꯣꯌꯅꯅꯥ ꯁ꯭ꯞꯂꯤꯠ ꯕꯇꯟ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡ ꯁꯦꯝꯃꯨ, ꯑꯗꯨꯕꯨ .dropdown-toggle-split
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯀꯦꯔꯦꯠꯀꯤ ꯑꯀꯣꯌꯕꯗꯥ ꯃꯇꯤꯛ ꯆꯥꯕꯥ ꯁ꯭ꯄꯦꯁꯤꯡꯒꯤꯗꯃꯛ ꯍꯥꯄꯆꯤꯅꯕꯒꯥ ꯂꯣꯌꯅꯅꯥ꯫
ꯑꯩꯈꯣꯌꯅꯥ ꯑꯍꯦꯅꯕꯥ ꯀ꯭ꯂꯥꯁ ꯑꯁꯤ ꯁꯤꯖꯤꯟꯅꯗꯨꯅꯥ padding
ꯀꯦꯔꯦꯠꯀꯤ ꯃꯥꯏꯀꯩ ꯑꯃꯔꯣꯃꯗꯥ ꯂꯩꯕꯥ ꯍꯣꯔꯥꯏꯖꯣꯟꯇꯦꯜ ꯑꯗꯨ ꯲꯵% ꯍꯟꯊꯍꯟꯅꯕꯥ ꯑꯃꯁꯨꯡ margin-left
ꯆꯥꯡ ꯅꯥꯏꯅꯥ ꯕꯇꯟ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡꯒꯤꯗꯃꯛꯇꯥ ꯍꯥꯄꯆꯤꯜꯂꯕꯥ ꯑꯗꯨ ꯂꯧꯊꯣꯛꯅꯕꯥ ꯁꯤꯖꯤꯟꯅꯩ꯫ ꯑꯍꯦꯅꯕꯥ ꯑꯍꯣꯡꯕꯁꯤꯡ ꯑꯗꯨꯅꯥ ꯀꯦꯔꯦꯠ ꯑꯗꯨ ꯁ꯭ꯞꯂꯤꯠ ꯕꯇꯟ ꯑꯗꯨꯗꯥ ꯁꯦꯟꯇꯔ ꯇꯧꯗꯨꯅꯥ ꯊꯝꯃꯤ ꯑꯃꯁꯨꯡ ꯃꯔꯨꯑꯣꯏꯕꯥ ꯕꯇꯟ ꯑꯗꯨꯒꯤ ꯃꯅꯥꯛꯇꯥ ꯍꯦꯟꯅꯥ ꯃꯇꯤꯛ ꯆꯥꯕꯥ ꯁꯥꯏꯖꯒꯤ ꯍꯤꯠ ꯑꯦꯔꯤꯌꯥ ꯑꯃꯥ ꯄꯤ꯫
ꯁꯥꯏꯖ ꯇꯧꯕꯥ꯫
ꯕꯇꯟ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡꯅꯥ ꯗꯤꯐꯣꯜꯇ ꯑꯃꯁꯨꯡ ꯁ꯭ꯞꯂꯤꯠ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯕꯇꯅꯁꯤꯡ ꯌꯥꯑꯣꯅꯥ ꯁꯥꯏꯖ ꯈꯨꯗꯤꯡꯃꯛꯀꯤ ꯕꯇꯅꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯊꯕꯛ ꯇꯧꯏ꯫
ꯃꯥꯏꯀꯩꯁꯤꯡ꯫
ꯗ꯭ꯔꯣꯄꯑꯞ ꯇꯧꯕꯥ꯫
ꯃꯃꯥ-ꯃꯄꯥꯒꯤ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨꯗꯥ ꯍꯥꯄꯆꯤꯟꯗꯨꯅꯥ ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯒꯤ ꯃꯊꯛꯇꯥ ꯂꯩꯕꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨꯁꯤꯡ ꯇ꯭ꯔꯤꯒꯔ .dropup
ꯇꯧ꯫
ꯗ꯭ꯔꯣꯄꯔꯥꯏꯠ ꯇꯧꯕꯥ꯫
ꯃꯃꯥ-ꯃꯄꯥꯒꯤ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨꯗꯥ ꯍꯥꯄꯆꯤꯟꯗꯨꯅꯥ ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯒꯤ ꯑꯔꯣꯏꯕꯥ ꯃꯐꯃꯗꯥ ꯂꯩꯕꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨꯁꯤꯡ ꯇ꯭ꯔꯤꯒꯔ .dropright
ꯇꯧ꯫
ꯗ꯭ꯔꯣꯞꯂꯦꯐ꯭ꯠ ꯇꯧꯕꯥ꯫
ꯃꯃꯥ-ꯃꯄꯥꯒꯤ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨꯗꯥ ꯍꯥꯄꯆꯤꯟꯗꯨꯅꯥ ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡꯒꯤ ꯈꯥꯃꯗꯥ ꯂꯩꯕꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨꯁꯤꯡ ꯇ꯭ꯔꯤꯒꯔ .dropleft
ꯇꯧ꯫
ꯄꯨꯋꯥꯔꯤ ꯑꯣꯏꯅꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯀꯟꯇꯦꯟꯇꯁꯤꯡ ꯑꯁꯤ ꯂꯤꯉ꯭ꯛ ꯑꯣꯏꯒꯗꯕꯅꯤ, ꯑꯗꯨꯕꯨ v4ꯗꯥ ꯃꯗꯨ ꯍꯧꯖꯤꯛ ꯑꯣꯏꯗ꯭ꯔꯦ꯫ ꯍꯧꯖꯤꯛꯇꯤ ꯅꯍꯥꯛꯅꯥ ꯑꯣꯄꯁꯅꯦꯜ ꯑꯣꯏꯅꯥ ꯅꯍꯥꯛꯀꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡꯗꯥ ꯁꯨꯞꯅꯒꯤ s <button>
ꯈꯛꯇꯒꯤ ꯃꯍꯨꯠꯇꯥ ꯑꯦꯂꯤꯃꯦꯟꯇꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯕꯥ ꯌꯥꯔꯦ꯫<a>
ꯅꯍꯥꯛꯅꯥ ꯅꯟ-ꯏꯟꯇꯔꯦꯛꯇꯤꯕ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯥꯏꯇꯦꯃꯁꯤꯡꯁꯨ ꯁꯦꯝꯕꯥ ꯌꯥꯏ .dropdown-item-text
. ꯀꯁ꯭ꯇꯝ ꯁꯤ.ꯑꯦꯁ.ꯑꯦꯁ. ꯅꯠꯠꯔꯒꯥ ꯇꯦꯛꯁꯠ ꯌꯨꯇꯤꯂꯤꯇꯤꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯃꯈꯥ ꯇꯥꯅꯥ ꯁ꯭ꯇꯥꯏꯜ ꯇꯧꯕꯗꯥ ꯐ꯭ꯔꯤ ꯑꯣꯏꯅꯥ ꯐꯥꯑꯣꯕꯤꯌꯨ꯫
ꯊꯋꯥꯏ ꯌꯥꯎꯕ
ꯑꯦꯛꯇꯤꯕ ꯑꯣꯏꯅꯥ ꯁ꯭ꯇꯥꯏꯜ.active
ꯇꯧꯅꯕꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯗꯥ ꯂꯩꯕꯥ ꯑꯥꯏꯇꯦꯃꯁꯤꯡꯗꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ .
ꯌꯥꯍꯟꯗ꯭ꯔꯕ
ꯗꯤꯁꯦꯕꯜ ꯑꯣꯏꯅꯥ ꯁ꯭ꯇꯥꯏꯜ.disabled
ꯇꯧꯅꯕꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯗꯥ ꯂꯩꯕꯥ ꯑꯥꯏꯇꯦꯃꯁꯤꯡꯗꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ .
ꯗꯤꯐꯣꯜꯇ ꯑꯣꯏꯅꯥ, ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯑꯃꯥ ꯃꯊꯛꯇꯒꯤ ꯑꯃꯁꯨꯡ ꯃꯁꯤꯒꯤ ꯃꯃꯥ-ꯃꯄꯥꯒꯤ ꯂꯦꯃꯍꯧꯔꯤꯕꯥ ꯃꯐꯝ ꯑꯗꯨꯗꯥ ꯑꯣꯇꯣꯃꯦꯇꯦꯗ ꯑꯣꯏꯅꯥ 100% ꯄꯣꯖꯤꯁꯟ ꯇꯧꯏ꯫ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯑꯗꯨ ꯔꯥꯏꯠ ꯑꯦꯂꯥꯏꯟ ꯇꯧꯅꯕꯥ .dropdown-menu-right
aꯗꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ꯫.dropdown-menu
ꯍꯦꯗꯁ ꯑꯥꯞ ꯇꯧꯕꯥ! ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡ ꯑꯁꯤ Popper.jsꯅꯥ ꯃꯔꯝ ꯑꯣꯏꯗꯨꯅꯥ ꯄꯣꯖꯤꯁꯟ ꯇꯧꯏ (ꯃꯈꯣꯌ ꯑꯁꯤ ꯅꯦꯚꯕꯥꯔ ꯑꯃꯗꯥ ꯌꯥꯑꯣꯕꯥ ꯃꯇꯃꯗꯥ ꯅꯠꯇꯅꯥ)꯫
ꯔꯦꯁ꯭ꯄꯣꯟꯁꯤꯕꯜ ꯑꯦꯂꯥꯏꯟꯃꯦꯟꯇ ꯇꯧꯕꯥ꯫
ꯀꯔꯤꯒꯨꯝꯕꯥ ꯅꯍꯥꯛꯅꯥ ꯔꯦꯁ꯭ꯄꯣꯟꯁꯤꯕꯜ ꯑꯦꯂꯥꯏꯟꯃꯦꯟꯇ ꯁꯤꯖꯤꯟꯅꯕꯥ ꯄꯥꯝꯂꯕꯗꯤ, ꯑꯦꯠꯔꯤꯕꯤꯎꯠ ꯑꯗꯨ ꯍꯥꯄꯆꯤꯟꯗꯨꯅꯥ ꯗꯥꯏꯅꯥꯃꯤꯛ ꯄꯣꯖꯤꯁꯅꯤꯡ ꯗꯤꯁꯦꯕꯜ ꯇꯧ data-display="static"
ꯑꯃꯁꯨꯡ ꯔꯦꯁ꯭ꯄꯣꯟꯁꯤꯕꯜ ꯚꯦꯔꯤꯑꯦꯁꯟ ꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯧ꯫
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯑꯗꯨ ꯑꯄꯤꯕꯥ ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇ ꯅꯠꯠꯔꯒꯥ ꯃꯁꯤꯗꯒꯤ ꯍꯦꯅꯕꯥ ꯑꯗꯨꯒꯥ ꯔꯥꯏꯠ ꯑꯦꯂꯥꯏꯟ ꯇꯧꯅꯕꯥ , ꯍꯥꯄꯆꯤꯜꯂꯨ .dropdown-menu{-sm|-md|-lg|-xl}-right
.
ꯑꯄꯤꯕꯥ ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇ ꯅꯠꯠꯔꯒꯥ ꯃꯁꯤꯗꯒꯤ ꯍꯦꯅꯕꯥ ꯑꯗꯨꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯂꯦꯞꯇꯅꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯑꯦꯂꯥꯏꯟ ꯇꯧꯅꯕꯥ , ꯍꯥꯄꯆꯤꯜꯂꯨ .dropdown-menu-right
ꯑꯃꯁꯨꯡ .dropdown-menu{-sm|-md|-lg|-xl}-left
.
data-display="static"
Popper.js ꯑꯁꯤ ꯅꯦꯚꯕꯥꯔꯁꯤꯡꯗꯥ ꯁꯤꯖꯤꯟꯅꯗꯕꯥ ꯃꯔꯝꯅꯥ, ꯅꯍꯥꯛꯅꯥ ꯅꯦꯚꯕꯥꯔꯁꯤꯡꯗꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯕꯇꯅꯁꯤꯡꯗꯥ ꯑꯦꯠꯔꯤꯕꯤꯎꯠ ꯑꯃꯥ ꯍꯥꯄꯆꯤꯅꯕꯒꯤ ꯃꯊꯧ ꯇꯥꯗꯦ ꯍꯥꯌꯕꯁꯤ ꯈꯪꯖꯤꯅꯕꯤꯌꯨ꯫
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯑꯃꯍꯦꯛꯇꯗꯥ ꯑꯦꯛꯁꯅꯁꯤꯡꯒꯤ ꯁꯦꯛꯁꯅꯁꯤꯡ ꯂꯦꯕꯦꯜ ꯇꯧꯅꯕꯥ ꯍꯦꯗ ꯑꯃꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ꯫
ꯗꯤꯚꯥꯏꯗꯔꯁꯤꯡ꯫
ꯗꯤꯚꯥꯏꯗꯔ ꯑꯃꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯃꯔꯤ ꯂꯩꯅꯕꯥ ꯃꯦꯅꯨ ꯑꯥꯏꯇꯦꯃꯁꯤꯡꯒꯤ ꯇꯣꯉꯥꯟ-ꯇꯣꯉꯥꯅꯕꯥ ꯀꯥꯡꯂꯨꯄꯁꯤꯡ꯫
ꯃꯌꯦꯛ
ꯐ꯭ꯔꯤꯐꯣꯔꯝ ꯇꯦꯛꯁꯠ ꯑꯃꯍꯦꯛꯇꯕꯨ ꯇꯦꯛꯁꯇꯥꯏꯂꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯑꯃꯒꯤ ꯃꯅꯨꯡꯗꯥ ꯊꯝꯃꯨ ꯑꯃꯁꯨꯡ ꯁ꯭ꯄꯦꯁꯤꯡ ꯌꯨꯇꯤꯂꯤꯇꯤꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯧ . ꯃꯦꯅꯨꯒꯤ ꯄꯥꯛ ꯆꯥꯎꯕꯥ ꯑꯗꯨ ꯀꯟꯠꯔꯣꯜ ꯇꯧꯅꯕꯥ ꯑꯍꯦꯅꯕꯥ ꯁꯥꯏꯖꯤꯡ ꯁ꯭ꯇꯥꯏꯂꯁꯤꯡ ꯃꯊꯧ ꯇꯥꯕꯥ ꯌꯥꯏ ꯍꯥꯌꯕꯁꯤ ꯈꯪꯖꯤꯅꯕꯤꯌꯨ.
ꯐꯣꯔꯝ ꯑꯃꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯑꯃꯒꯤ ꯃꯅꯨꯡꯗꯥ ꯊꯝꯃꯨ, ꯅꯠꯠꯔꯒꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯑꯃꯥ ꯑꯣꯏꯅꯥ ꯁꯦꯝꯃꯨ, ꯑꯃꯁꯨꯡ ꯅꯍꯥꯛꯅꯥ ꯃꯊꯧ ꯇꯥꯔꯤꯕꯥ ꯅꯦꯒꯦꯇꯤꯕ ꯁ꯭ꯄꯦꯁ ꯑꯗꯨ ꯄꯤꯅꯕꯥ ꯃꯥꯔꯖꯤꯟ ꯅꯠꯠꯔꯒꯥ ꯄꯦꯗꯤꯡ ꯌꯨꯇꯤꯂꯤꯇꯤꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯧ꯫
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯣꯄꯁꯅꯁꯤꯡ꯫
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯒꯤ ꯃꯐꯝ ꯍꯣꯡꯗꯣꯛꯅꯕꯥ data-offset
ꯅꯠꯠꯔꯒꯥ ꯁꯤꯖꯤꯟꯅꯧ꯫data-reference
ꯁꯤꯖꯤꯟꯅꯕꯥ꯫
.show
ꯗꯦꯇꯥ ꯑꯦꯠꯔꯤꯕꯤꯎꯇꯁꯤꯡ ꯅꯠꯠꯔꯒꯥ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ, ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯄ꯭ꯂꯒꯏꯟ ꯑꯁꯤꯅꯥ ꯃꯃꯥ-ꯃꯄꯥꯒꯤ ꯂꯤꯁ꯭ꯠ ꯑꯥꯏꯇꯦꯝ ꯑꯗꯨꯗꯥ ꯀ꯭ꯂꯥꯁ ꯑꯗꯨ ꯇꯣꯒꯜ ꯇꯧꯗꯨꯅꯥ ꯂꯣꯠꯁꯤꯜꯂꯕꯥ ꯀꯟꯇꯦꯟꯇ (ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨꯁꯤꯡ) ꯇꯣꯒꯜ ꯇꯧꯏ꯫ ꯑꯦꯞꯂꯤꯀꯦꯁꯅꯒꯤ data-toggle="dropdown"
ꯊꯥꯛ ꯑꯃꯗꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨꯁꯤꯡ ꯂꯣꯗ ꯇꯧꯅꯕꯒꯤꯗꯃꯛ ꯑꯦꯠꯔꯤꯕꯤꯎꯠ ꯑꯁꯤ ꯊꯥꯖꯕꯥ ꯊꯝꯂꯤ, ꯃꯔꯝ ꯑꯗꯨꯅꯥ ꯃꯇꯝ ꯄꯨꯝꯅꯃꯛꯇꯥ ꯁꯤꯖꯤꯟꯅꯕꯥ ꯍꯥꯌꯕꯁꯤ ꯑꯐꯕꯥ ꯋꯥꯈꯜꯂꯣꯟ ꯑꯃꯅꯤ꯫
ꯇꯆ-ꯏꯅꯦꯕꯜ ꯗꯤꯚꯥꯏꯁꯁꯤꯡꯗꯥ, ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯃꯥ ꯍꯥꯡꯗꯣꯀꯄꯅꯥ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨꯒꯤ ꯈꯨꯗꯛꯀꯤ ꯑꯣꯏꯕꯥ ꯑꯉꯥꯡꯁꯤꯡꯗꯥ ꯏꯝꯄꯦꯛꯇ ( $.noop
) ꯍꯦꯟꯗꯂꯔꯁꯤꯡ ꯍꯥꯄꯆꯤꯜꯂꯤ꯫ ꯃꯁꯤꯒꯤ ꯌꯥꯕꯥ ꯉꯃꯗꯕꯥ ꯐꯠꯇꯕꯥ ꯍꯦꯛ ꯑꯁꯤ ꯑꯥꯏ.ꯑꯣ.ꯑꯦꯁ.ꯀꯤ ꯏꯚꯦꯟꯇ ꯗꯦꯂꯤꯒꯦꯁꯟꯗꯥ ꯀꯨꯏꯔꯛ ꯑꯃꯒꯤ ꯑꯀꯣꯌꯕꯗꯥ ꯊꯕꯛ ꯇꯧꯅꯕꯥ ꯃꯊꯧ ꯇꯥꯏ , ꯃꯁꯤꯅꯥ ꯅꯠꯔꯕꯗꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯒꯤ ꯃꯄꯥꯟꯗꯥ ꯂꯩꯕꯥ ꯃꯐꯝ ꯑꯃꯍꯦꯛꯇꯗꯥ ꯇꯦꯞ ꯑꯃꯅꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯗꯨ ꯂꯣꯠꯁꯤꯜꯂꯤꯕꯥ ꯀꯣꯗ ꯑꯗꯨ ꯇ꯭ꯔꯤꯒꯔ ꯇꯧꯕꯥ ꯊꯤꯡꯒꯅꯤ꯫ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯗꯨ ꯂꯣꯗ ꯇꯧꯔꯕꯥ ꯃꯇꯨꯡꯗꯥ, ꯑꯍꯦꯅꯕꯥ ꯏꯝꯄꯦꯛꯇ ꯍꯦꯟꯗꯂꯔꯁꯤꯡ ꯑꯁꯤ ꯂꯧꯊꯣꯀꯏ꯫mouseover
<body>
mouseover
ꯗꯦꯇꯥ ꯑꯦꯠꯔꯤꯕꯤꯎꯇꯁꯤꯡꯒꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ꯫
data-toggle="dropdown"
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯃꯥ ꯇꯣꯒꯜ ꯇꯧꯅꯕꯥ ꯂꯤꯉ꯭ꯛ ꯅꯠꯠꯔꯒꯥ ꯕꯇꯟ ꯑꯃꯗꯥ ꯍꯥꯄꯆꯤꯜꯂꯨ꯫
ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ꯫
ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯁꯤꯡ ꯀꯜ ꯇꯧꯕꯤꯌꯨ:
data-toggle="dropdown"
ꯍꯧꯖꯤꯀꯁꯨ ꯃ��ꯧ ꯇꯥꯏ꯫
ꯅꯍꯥꯛꯅꯥ ꯅꯍꯥꯛꯀꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯗꯨ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ ꯀꯧꯔꯕꯁꯨ ꯅꯠꯠꯔꯒꯥ ꯃꯗꯨꯒꯤ ꯃꯍꯨꯠꯇꯥ ꯗꯦꯇꯥ-ꯑꯦꯄꯤꯑꯥꯏ ꯁꯤꯖꯤꯟꯅꯔꯕꯁꯨ, data-toggle="dropdown"
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯒꯤ ꯇ꯭ꯔꯤꯒꯔ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨꯗꯥ ꯃꯇꯝ ꯄꯨꯝꯅꯃꯛꯇꯥ ꯂꯩꯕꯥ ꯃꯊꯧ ꯇꯥꯏ꯫
ꯑꯣꯄꯁꯅꯁꯤꯡ ꯂꯩ꯫
ꯑꯣꯄꯁꯅꯁꯤꯡ ꯑꯁꯤ ꯗꯦꯇꯥ ꯑꯦꯠꯔꯤꯕꯤꯎꯇꯁꯤꯡ ꯅꯠꯠꯔꯒꯥ ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇꯀꯤ ꯈꯨꯠꯊꯥꯡꯗꯥ ꯄꯥꯁ ꯇꯧꯕꯥ ꯌꯥꯏ꯫ ꯗꯦꯇꯥ ꯑꯦꯠꯔꯤꯕꯤꯎꯇꯁꯤꯡꯒꯤ ꯑꯣꯏꯅꯗꯤ, ꯑꯣꯄꯁꯅꯒꯤ ꯃꯃꯤꯡ ꯑꯗꯨ data-
, data-offset=""
.
ꯃꯤꯡ |
ꯃꯈꯜ |
ꯀꯥꯡꯂꯣꯟ ꯏꯟꯗꯕ |
ꯋꯥꯔꯣꯜ |
ꯑꯣꯐꯁꯦꯠ ꯇꯧꯕꯥ꯫ |
ꯃꯁꯤꯡ | ꯁ꯭ꯠꯔꯤꯡ | ꯃꯊꯧ |
꯰ |
ꯃꯁꯤꯒꯤ ꯄꯥꯟꯗꯝ ꯑꯗꯨꯒꯥ ꯆꯥꯡꯗꯝꯅꯕꯗꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯗꯨꯒꯤ ꯑꯣꯐꯁꯦꯠ꯫ ꯐꯉ꯭ꯀꯁꯟ ꯑꯃꯅꯥ ꯑꯣꯐꯁꯦꯠ ꯂꯦꯄꯊꯣꯛꯅꯕꯥ ꯁꯤꯖꯤꯟꯅꯕꯥ ꯃꯇꯃꯗꯥ, ꯃꯁꯤꯒꯤ ꯑꯍꯥꯅꯕꯥ ꯑꯥꯔꯒꯨꯃꯦꯟꯇ ꯑꯣꯏꯅꯥ ꯑꯣꯐꯁꯦꯠ ꯗꯦꯇꯥ ꯌꯥꯑꯣꯕꯥ ꯑꯣꯕꯖꯦꯛꯇ ꯑꯃꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯀꯧꯏ꯫ ꯐꯉ꯭ꯀꯁꯟ ꯑꯗꯨꯅꯥ ꯆꯞ ꯃꯥꯟꯅꯕꯥ ꯁ꯭ꯠꯔꯀꯆꯔꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯑꯣꯕꯖꯦꯛꯇ ꯑꯃꯥ ꯔꯤꯇꯔꯟ ꯇꯧꯒꯗꯕꯅꯤ꯫ ꯇ꯭ꯔꯤꯒꯔꯤꯡ ꯑꯦꯂꯤꯃꯦꯟꯇ DOM ꯅꯣꯗ ꯑꯁꯤ ꯑꯅꯤꯁꯨꯕꯥ ꯑꯥꯔꯒꯨꯃꯦꯟꯇ ꯑꯣꯏꯅꯥ ꯄꯥꯁ ꯇꯧꯏ꯫ ꯑꯍꯦꯅꯕꯥ ꯏꯅꯐꯣꯔꯃꯦꯁꯅꯒꯤꯗꯃꯛꯇꯥ Popper.jsꯒꯤ ꯑꯣꯐꯁꯦꯠ ꯗꯣꯛꯌꯨꯃꯦꯟꯇꯁꯤꯡ ꯌꯦꯡꯕꯤꯌꯨ . |
ꯑꯣꯟꯊꯣꯛꯄ |
ꯕꯨꯂꯦꯅꯒꯤ ꯑꯣꯏꯕꯥ꯫ |
ꯑꯆꯨꯝꯕ |
ꯔꯦꯐꯥꯔꯦꯟꯁ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨꯗꯥ ꯑꯣꯚꯔꯂꯦꯞ ꯇꯧꯕꯥ ꯃꯇꯃꯗꯥ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯗꯨ ꯐ꯭ꯂꯤꯞ ꯇꯧꯕꯥ ꯌꯥꯍꯅꯒꯗꯕꯅꯤ꯫ ꯑꯍꯦꯅꯕꯥ ꯏꯅꯐꯣꯔꯃꯦꯁꯅꯒꯤꯗꯃꯛꯇꯥ Popper.jsꯒꯤ ꯐ꯭ꯂꯤꯞ ꯗꯣꯛꯌꯨꯃꯦꯟꯇꯁꯤꯡ ꯌꯦꯡꯕꯤꯌꯨ . |
ꯉꯃꯈꯩꯗꯥ ꯂꯩ꯫ |
ꯁ꯭ꯠꯔꯤꯡ | ꯄꯣꯠꯂꯝ |
‘ꯁ꯭ꯛꯔꯣꯂꯄꯦꯔꯦꯟꯇ’ ꯑꯁꯤꯅꯤ꯫ |
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨꯒꯤ ꯑꯣꯚꯔꯐ꯭ꯂꯣ ꯀꯟꯠꯔꯣꯜ ꯕꯣꯎꯟꯗꯔꯤ꯫ 'viewport' , 'window' , 'scrollParent' , ꯅꯠꯠꯔꯒꯥ HTMLElement ꯔꯦꯐꯥꯔꯦꯟꯁ ꯑꯃꯒꯤ ꯚꯦꯜꯌꯨꯁꯤꯡ (ꯖꯥꯚꯥꯁ꯭ꯛꯔꯤꯞꯇ ꯈꯛꯇꯗꯥ) ꯌꯥꯔꯦ. ꯑꯍꯦꯅꯕꯥ ꯏꯅꯐꯣꯔꯃꯦꯁꯅꯒꯤꯗꯃꯛꯇꯥ Popper.jsꯒꯤ preventOverflow docs ꯌꯦꯡꯕꯤꯌꯨ . |
ꯆꯥꯡꯗꯝꯅꯕ |
ꯁ꯭ꯠꯔꯤꯡ | ꯄꯣꯠꯂꯝ |
‘ꯇꯣꯒꯜ’ ꯇꯧꯕꯥ꯫ |
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨꯒꯤ ꯔꯦꯐꯥꯔꯦꯟꯁ ꯑꯦꯂꯤꯃꯦꯟꯇ꯫ 'toggle' , 'parent' , ꯅꯠꯠꯔꯒꯥ HTMLElement ꯔꯦꯐꯥꯔꯦꯟꯁ ꯑꯃꯒꯤ ꯚꯦꯜꯌꯨꯁꯤꯡ ꯌꯥꯔꯦ . ꯑꯍꯦꯅꯕꯥ ꯏꯅꯐꯣꯔꯃꯦꯁꯅꯒꯤꯗꯃꯛꯇꯥ Popper.jsꯒꯤ referenceObject docs ꯌꯦꯡꯕꯤꯌꯨ . |
ꯎꯌꯄ |
ꯄꯔꯦꯡ |
‘ꯗꯥꯏꯅꯥꯃꯤꯛ’꯫ |
ꯗꯤꯐꯣꯜꯇ ꯑꯣꯏꯅꯥ, ꯑꯩꯈꯣꯌꯅꯥ ꯗꯥꯏꯅꯥꯃꯤꯛ ꯑꯣꯏꯕꯥ ꯄꯣꯖꯤꯁꯅꯒꯤꯗꯃꯛ Popper.js ꯁꯤꯖꯤꯟꯅꯩ꯫ ꯃꯁꯤ ꯗꯤꯁꯦꯕꯜ ꯇꯧꯔꯒꯥ static . |
ꯄꯣꯄꯔꯀꯅꯐꯤꯒ ꯇꯧꯕꯥ꯫ |
ꯅꯜ | ꯄꯣꯠꯂꯝ |
ꯑꯃꯠꯇ ꯑꯣꯏꯗꯕ |
ꯕꯨꯇꯁ꯭ꯠꯔꯥꯄꯀꯤ ꯗꯤꯐꯣꯜꯇ Popper.js ꯀꯅꯐꯤꯒꯔꯦꯁꯟ ꯍꯣꯡꯗꯣꯛꯅꯕꯥ, Popper.jsꯒꯤ ꯀꯅꯐꯤꯒꯔꯦꯁꯟ ꯑꯗꯨ ꯌꯦꯡꯎ |
boundary
, ꯅꯠꯇꯕꯥ ꯑꯇꯣꯞꯄꯥ ꯚꯦꯜꯌꯨ ꯑꯃꯍꯦꯛꯇꯗꯥ ꯁꯦꯠ ꯇꯧꯕꯥ ꯃꯇꯃꯗꯥ ꯅꯣꯠ ꯇꯧꯕꯤꯌꯨ 'scrollParent'
, ꯁ꯭ꯇꯥꯏꯜ ꯑꯗꯨ ꯀꯟꯇꯦꯅꯔ position: static
ꯑꯗꯨꯗꯥ ꯑꯦꯞꯂꯥꯏ ꯇꯧꯏ ..dropdown
ꯄꯥꯝꯕꯩꯁꯤꯡ꯫
ꯊꯧꯑꯪꯡ |
ꯋꯥꯔꯣꯜ |
$().dropdown('toggle') |
ꯑꯄꯤꯕꯥ ꯅꯦꯚꯕꯥꯔ ꯅꯠꯠꯔꯒꯥ ꯇꯦꯕꯜ ꯅꯦꯚꯤꯒꯦꯁꯟ ꯑꯃꯒꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯇꯣꯒꯜ ꯇꯧꯏ꯫ |
$().dropdown('show') |
ꯑꯄꯤꯕꯥ ꯅꯦꯚꯕꯥꯔ ꯅꯠꯠꯔꯒꯥ ꯇꯦꯕꯜ ꯅꯦꯚꯤꯒꯦꯁꯟ ꯑꯃꯒꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯎꯠꯂꯤ꯫ |
$().dropdown('hide') |
ꯑꯄꯤꯕꯥ ꯅꯦꯚꯕꯥꯔ ꯅꯠꯠꯔꯒꯥ ꯇꯦꯕꯜ ꯅꯦꯚꯤꯒꯦꯁꯟ ꯑꯃꯒꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯃꯦꯅꯨ ꯂꯣꯠꯁꯤꯜꯂꯤ꯫ |
$().dropdown('update') |
ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯒꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯅꯒꯤ ꯄꯣꯖꯤꯁꯟ ꯑꯗꯨ ꯑꯄꯗꯦꯠ ꯇꯧꯏ꯫ |
$().dropdown('dispose') |
ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯒꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯗꯨ ꯃꯥꯡꯍꯜꯂꯤ꯫ |
ꯊꯧꯔꯃꯁꯤꯡ꯫
ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯏꯚꯦꯟꯇ ꯄꯨꯝꯅꯃꯛ ꯑꯁꯤ .dropdown-menu
'ꯒꯤ ꯃꯃꯥ-ꯃꯄꯥꯒꯤ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨꯗꯥ ꯐꯥꯏꯔ ꯇꯧꯏ ꯑꯃꯁꯨꯡ relatedTarget
ꯄ꯭ꯔꯣꯄꯔꯇꯤ ꯑꯃꯥ ꯂꯩ, ꯃꯁꯤꯒꯤ ꯚꯦꯜꯌꯨ ꯑꯁꯤ ꯇꯣꯒꯂꯤꯡ ꯑꯦꯉ꯭ꯀꯔ ꯑꯦꯂꯤꯃꯦꯟꯇꯅꯤ꯫ hide.bs.dropdown
ꯑꯃꯁꯨꯡ hidden.bs.dropdown
ꯏꯚꯦꯟꯇꯁꯤꯡꯗꯥ ꯀ꯭ꯂꯤꯛ ꯏꯚꯦꯟꯇꯀꯤꯗꯃꯛ ꯏꯚꯦꯟꯇ ꯑꯣꯕꯖꯦꯛꯇ ꯑꯃꯥ ꯌꯥꯑꯣꯕꯥ clickEvent
ꯄ꯭ꯔꯣꯄꯔꯇꯤ ꯑꯃꯥ ꯂꯩ (ꯑꯔꯤꯖꯤꯅꯦꯜ ꯏꯚꯦꯟꯇ ꯃꯈꯜ ꯑꯗꯨ ꯈꯛꯇꯗꯥ )꯫click
ꯊꯧꯔꯝ |
ꯋꯥꯔꯣꯜ |
show.bs.dropdown |
ꯁꯣ ꯏꯟꯁꯇꯦꯟꯁ ꯃꯦꯊꯗ ꯀꯧꯕꯥ ꯃꯇꯃꯗꯥ ꯊꯧꯗꯣꯛ ꯑꯁꯤ ꯈꯨꯗꯛꯇꯥ ꯐꯥꯏꯔ ꯇꯧꯏ꯫ |
shown.bs.dropdown |
ꯊꯧꯗꯣꯛ ꯑꯁꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯗꯨ ꯌꯨꯖꯔꯅꯥ ꯎꯕꯥ ꯐꯪꯂꯕꯥ ꯃꯇꯃꯗꯥ ꯐꯥꯏꯔ ꯇꯧꯏ (CSS ꯇ꯭ꯔꯥꯟꯁꯤꯁꯅꯁꯤꯡ ꯉꯥꯏꯒꯅꯤ, ꯃꯄꯨꯡ ꯐꯥꯍꯟꯅꯕꯥ)꯫ |
hide.bs.dropdown |
ꯍꯤꯗ ꯏꯟꯁꯇꯦꯟꯁ ꯃꯦꯊꯗ ꯀꯧꯕꯥ ꯃꯇꯃꯗꯥ ꯏꯚꯦꯟꯇ ꯑꯁꯤ ꯈꯨꯗꯛꯇꯥ ꯐꯥꯏꯔ ꯇꯧꯏ꯫ |
hidden.bs.dropdown |
ꯊꯧꯗꯣꯛ ꯑꯁꯤ ꯗ꯭ꯔꯣꯄꯗꯥꯎꯟ ꯑꯗꯨ ꯌꯨꯖꯔꯗꯒꯤ ꯂꯣꯠꯁꯤꯅꯕꯥ ꯂꯣꯌꯔꯕꯥ ꯃꯇꯨꯡꯗꯥ ꯐꯥꯏꯔ ꯇꯧꯏ (CSS ꯇ꯭ꯔꯥꯟꯁꯤꯁꯅꯁꯤꯡ ꯉꯥꯏꯒꯅꯤ, ꯃꯄꯨꯡ ꯐꯥꯍꯟꯅꯕꯥ)꯫ |