New/Pop/Close

Pop Element๋ฅผ ๋“ฑ๋กํ•˜๊ณ  ์—ด๊ณ  ๋‹ซ์Šต๋‹ˆ๋‹ค.

popman.new({OPTIONS..})

Pop Element๋ฅผ ์ •์˜ํ•˜์—ฌ ๋“ฑ๋กํ•ฉ๋‹ˆ๋‹ค.

โ€ป ์†์„ฑ

์†์„ฑ ํ˜•์‹ ๊ธฐ๋ณธ๊ฐ’ ํŠน์ง•
id String {AUTO_GEN} Pop Element์˜ ID
name String null Pop Element์˜ Name
content String '' POP๋…ธ๋“œ๊ฐ€ ๋“ฑ๋ก๋  ๋•Œ
exp String 50%/50% Pop Element์˜ ์‚ฌ์ด์ฆˆ์™€ ์œ„์น˜ ํ‘œํ˜„์‹
expx String null Pop Element์˜ ๊ฐ€๋กœ ์‚ฌ์ด์ฆˆ์™€ ์œ„์น˜ ํ‘œํ˜„์‹
expy String null Pop Element์˜ ์„ธ๋กœ ์‚ฌ์ด์ฆˆ์™€ ์œ„์น˜ ํ‘œํ˜„์‹
modeTest Boolean false test๋ฅผ ์œ„ํ•ด CSS ์„ค์ •์—†์ด ๋ˆˆ์— ๋„๋Š” Style์„ ์ž๋™ ์„ค์ •
modeDark Boolean true ๋ฐฐ๊ฒฝ์„ ์–ด๋‘์šด ๋ฐ˜ํˆฌ๋ช… ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
modeAuto Boolean false ๋“ฑ๋ก๊ณผ ๋™์‹œ์— Pop Element๋ฅผ ์—ฝ๋‹ˆ๋‹ค.
modeAnimation Boolean false PopElement๋ฅผ Fade-In/Fade-Out ํšจ๊ณผ์™€ ํ•จ๊ป˜ ์—ด๊ณ  ๋‹ซ์Šต๋‹ˆ๋‹ค. ์„ค์ •์‹œ popman.setup({modeAnimation:true});๋„ ํ•จ๊ป˜ ์„ค์ •ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.
closebyclickin Boolean false Pop Element์˜ ๋‚ด๋ถ€๋ฅผ ํด๋ฆญํ–ˆ์„ ๋•Œ ์ฐฝ์„ ๋‹ซ์Šต๋‹ˆ๋‹ค.
closebyclickout Boolean true Pop Element์˜ ์™ธ๋ถ€(์–ด๋‘์šด ์˜์—ญ)์„ ํด๋ฆญํ–ˆ์„ ๋•Œ ์ฐฝ์„ ๋‹ซ์Šต๋‹ˆ๋‹ค.
closebyesc Boolean true [ESC]ํ‚ค๋ฅผ ๋ˆ„๋ฅผ ๊ฒฝ์šฐ ์ฐฝ์„ ๋‹ซ์Šต๋‹ˆ๋‹ค.
add Function null ๋“ฑ๋ก์‹œ ๋ฐœ์ƒํ•˜๋Š” Event
pop Function null Pop Element๊ฐ€ ์—ด๋ฆด ๋•Œ ๋ฐœ์ƒํ•˜๋Š” Event
afterpop Function null 'pop' Event ํ›„์— ๋ฐœ์ƒํ•˜๋Š” Event
close Function null Pop Element๊ฐ€ ๋‹ซํž ๋•Œ ๋ฐœ์ƒํ•˜๋Š” Event
afterclose Function null 'close' Event ํ›„์— ๋ฐœ์ƒํ•˜๋Š” Event

popman.pop(ID or ELEMENT or CONDITION)

๋“ฑ๋ก๋œ ๋…ธ๋“œ๋ฅผ ํ™”๋ฉด์— ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.

popman.popTemp({OPTIONS..})

exp / expx / expy

closeby...

popman.close(ID or ELEMENT or CONDITION)

popman.closeAll()