Nesties

Snippets

	<!-- Nesty . Start -->
	<div class="nesty" data-label="Add" data-headers-fieldname="name" data-group="group_name">

		<!-- Nesty . Templates . Start -->
		<div class="templates">

			<!-- Level 1 -->
			<container data-level-name="first_level" data-level-title="First level" data-level-placeholder="First level name">
				<div class="body"></div>
			</container>
			<!-- Level 1 -->

			<!-- Level 2 -->
			<container data-level-name="second_level" data-level-title="Second level" data-level-placeholder="Second level name">
				<div class="body"></div>
			</container>
			<!-- Level 2 -->

			<!-- Level 3 -->
			<container data-level-name="third_level" data-level-title="Third level" data-level-placeholder="Third level name">
				<div class="body"></div>
			</container>
			<!-- Level 3 -->

		</div>
		<!-- Nesty . Templates . End -->

		<!-- Nesty . Content . Start -->
		<div class="content">

			<!-- Level 1 . Start -->
			<container data-level-name="first_level" data-level-title="First level" data-level-placeholder="First level name">
				<div class="body">

					<!-- Level 2 . Start -->
					<container data-level-name="second_level" data-level-title="Second level" data-level-placeholder="Second level name">
						<div class="body">

							<!-- Level 3 . Start -->
							<container data-level-name="third_level" data-level-title="Third level" data-level-placeholder="Third level name">
								<div class="body"></div>
							</container>
							<!-- Level 3 . End -->

						</div>
					</container>
					<!-- Level 2 . End -->

				</div>
			</container>
			<!-- Level 1 . End -->

		</div>
		<!-- Nesty . Content . End -->

	</div>
	<!-- Nesty . End -->
	
Options
Type Value
Status none, 'locked', 'disabled'
Size none, 'tiny', 'small', 'default', 'medium', 'large', 'huge'
Type Name Value
default data-label string
default data-label string
default data-headers-fieldname string
default data-group string
default data-level-name string Applicable to containers only
default data-level-title string Applicable to containers only
default data-level-placeholder string Applicable to containers only
validation maxrows int
validation minrows int
validation required 'required'
callback data-callback-initialize function Triggers on initialization
callback data-callback-update function Triggers on updating
callback data-callback-reset function Triggers on reset
callback data-callback-validate function Triggers on validation
callback data-callback-persist function Triggers on persisting
callback data-callback-hover function Triggers on hover
callback data-callback-focus function Triggers on focus
callback data-callback-lock function Triggers on locking
callback data-callback-unlock function Triggers on unlocking
callback data-callback-disable function Triggers on disabling
callback data-callback-enable function Triggers on enabling
callback data-callback-hide function Triggers on hiding
callback data-callback-show function Triggers on showing
callback data-callback-container_initialize function Triggers on container initialization
callback data-callback-container_create function Triggers on container creating
callback data-callback-container_duplicate function Triggers on container duplication
callback data-callback-container_delete function Triggers on container deleting
Methods

	// Scan nesties
	basekit.components.nesties.scan(scope);
	
Parameters Value
scope null element

	// Initialize nesties
	basekit.components.nesties.initialize(scope);
	
Parameters Value
scope null container nesty(ies)

	// Update nesties
	basekit.components.nesties.update(scope,id,label,group,minrows,maxrows,options);
	
Parameters Value
scope nesty(ies)
id id
label label
group string
minrows int
maxrows int
options 'locked', 'disabled'

	// Reset nesties
	basekit.components.nesties.cancel();
	
Parameters Value
- -

	// Set scope
	var scope= $('.nesty');

	// Reset nesties
	basekit.components.nesties.reset(scope);
	
Parameters Value
scope null nesty(ies)

	// Set scope
	var scope= $('.nesty');

	// Validate nesties
	basekit.components.nesties.validate(scope);
	
Parameters Value
scope null nesty(ies)

	// Set scope
	var scope= $('.nesty');

	// Persist nesties
	basekit.components.nesties.persist(scope);
	
Parameters Value
scope null nesty(ies)

	// Set scope
	var scope= $('.nesty');

	// Persist nesties
	basekit.components.nesties.refresh(scope);
	
Parameters Value
scope null nesty(ies)

	// Set scope
	var scope= $('.nesty');

	// Lock nesties
	basekit.components.nesties.lock(scope);
	
Parameters Value
scope null nesty(ies)

	// Set scope
	var scope= $('.nesty');

	// Unlock nesties
	basekit.components.nesties.unlock(scope);
	
Parameters Value
scope null nesty(ies)

	// Set scope
	var scope= $('.nesty');

	// Disable nesties
	basekit.components.nesties.disable(scope);
	
Parameters Value
scope null nesty(ies)

	// Set scope
	var scope= $('.nesty');

	// Enable nesties
	basekit.components.nesties.enable(scope);
	
Parameters Value
scope null nesty(ies)

	// Iniialize containers
	basekit.components.nesties.containers_initialize(scope);
	
Parameters Value
scope container(s)

	// Create container
	basekit.components.nesties.containers_create(scope);
	
Parameters Value
scope button

	// Create container
	basekit.components.nesties.containers_duplicate(scope);
	
Parameters Value
scope container

	// Delete containers
	basekit.components.nesties.containers_delete(scope);
	
Parameters Value
scope container
Sizes
Horário
nesty tiny
Horário
nesty small
Horário
nesty default
Horário
nesty medium
Horário
nesty large
Horário
nesty huge
Colors
Horário
nesty default
Horário
nesty primary
Horário
nesty secondary
Horário
nesty red
Horário
nesty green
Horário
nesty blue
Horário
nesty orange
Horário
nesty yellow
Horário
nesty grey
Horário
nesty black
Horário
nesty white
Horário
nesty red_light
Horário
nesty green_light
Horário
nesty blue_light
Horário
nesty orange_light
Horário
nesty yellow_light
Horário
nesty grey_light
Horário
nesty black_light
Horário
nesty white_light
Horário
nesty red_medium
Horário
nesty green_medium
Horário
nesty blue_medium
Horário
nesty orange_medium
Horário
nesty yellow_medium
Horário
nesty grey_medium
Horário
nesty black_medium
Horário
nesty white_medium
Horário
nesty red_dark
Horário
nesty green_dark
Horário
nesty blue_dark
Horário
nesty orange_dark
Horário
nesty yellow_dark
Horário
nesty grey_dark
Horário
nesty black_dark
Horário
nesty white_dark