밉 사이드바 사이드바
mip-sidebar 사이드바 구성요소.
예
기본 사용법
<header> <div id="hamburger" class="mip-button" on="tap:sidebar.open"> <div id="logo" href="/">Open mip-sidebar</div> </div> </header> <mip-sidebar id='sidebar' layout="nodisplay" class="mip-hidden"> <ul> <li> <mip-link href="#">Home</mip-link> <button class="mip-button" on="tap:sidebar.close"> X </button> </li> <li> Nav item 1</li> <li> <mip-fit-text width="220" height="20" layout="responsive" max-font-size="24"> Nav item 2 - <mip-fit-text> </mip-fit-text> </li> <li> <mip-fit-text width="220" height="20" layout="responsive" max-font-size="24"> Nav item 3 - <mip-fit-text> longer text </mip-fit-text> </li> <li> Nav item 4 - Image <mip-img class='mip-sidebar-image' src="http://placeholder.qiniudn.com/100x50" width="20" height="20" alt="an image"></mip-img> </li> <li> Nav item 5</li> <li> Nav item 6</li> </ul> </mip-sidebar>
오른쪽 사이드바
<header> <div id="hamburger" class="mip-button" on="tap:right-sidebar.open"> <div id="logo" href="/">Open mip-sidebar</div> </div> </header> <mip-sidebar id='right-sidebar' layout="nodisplay" side="right" class="mip-hidden"> <ul> <li> <mip-link href="#">Home</mip-link> <button class="mip-button" on="tap:right-sidebar.close"> X </button> </li> <li> Nav item 1</li> <li> <mip-fit-text width="220" height="20" layout="responsive" max-font-size="24"> Nav item 2 - <mip-fit-text> </mip-fit-text> </li> <li> <mip-fit-text width="220" height="20" layout="responsive" max-font-size="24"> Nav item 3 - <mip-fit-text> longer text </mip-fit-text> </li> <li> Nav item 4 - Image <mip-img class='mip-sidebar-image' src="http://placeholder.qiniudn.com/100x50" width="20" height="20" alt="an image"></mip-img> </li> <li> Nav item 5</li> <li> Nav item 6</li> </mip-sidebar>
Properties
id
설명: id
필수: 예
형식: 문자열
단위: 없음
기본값: 없음
사용 제한: 없음
layout
설명: 레이아웃 설정
필수: 예
형식: 문자열
단위: 없음
값: nodisplay
side
설명: 사이드바 위치 설정, 왼쪽 또는 오른쪽
필수: 아니요
형식: 문자열
단위: 없음
값: 왼쪽, 오른쪽
기본값: 왼쪽