네비바 » Api

toggleitemcustomclass

Description

네비바의 아이템에 특정 CSS를 토글처리하는 API이다.

Parameters

Parameters Type Description
nItemIndex short Item Index
strCustomClass STRING CSS 클래스 이름

Return Value

Type Description
BOOL 정상 처리 여부

Example

function btn_on_mouseup(objInst) { var lastindex = navi01.getitemcount() - 1; if (lastindex < 0) { return; } // 마지막 아이템에 특정 CSS 토글 처리 navi01.toggleitemcustomclass(lastindex, "custom_css_class"); }

See Also

additemcustomclass
removeitemcustomclass
hasitemcustomclass

Viewer Ver.

24.3.19.1

Update Date

20240319