Sha256: b9ba1a03434a985023f2bfe5795487c89efe101687252389255ee7270e96a372
Contents?: true
Size: 539 Bytes
Versions: 13
Compression:
Stored size: 539 Bytes
Contents
{{- /* Usage: js-dismiss "ComponentName" */ -}} {{- $name := .Get 0 -}} Dismissal can be achieved with the `data` attribute on a button **within the {{ $name }}** as demonstrated below: ```html <button type="button" class="btn-close" data-bs-dismiss="{{ $name }}" aria-label="Close"></button> ``` or on a button **outside the {{ $name }}** using the `data-bs-target` as demonstrated below: ```html <button type="button" class="btn-close" data-bs-dismiss="{{ $name }}" data-bs-target="#my-{{ $name }}" aria-label="Close"></button> ```
Version data entries
13 entries across 13 versions & 1 rubygems