Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

alpinejs

<!-- GET STARTED WITH ALPINEJS! -->
<script src="//unpkg.com/alpinejs" defer></script>
 
<div x-data="{ open: false }">
    <button @click="open = true">Expand</button>
 
    <span x-show="open">
      Content...
    </span>
</div>
Comment

alpine js

<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.0/dist/alpine.min.js" defer></script>
Comment

alpine js

<div x-data="{ open: false }">
    <button @click="open = true">Open Dropdown</button>

    <ul
        x-show="open"
        @click.away="open = false"
    >
        Dropdown Body
    </ul>
</div>
Comment

alpinejs

<html>  <head>    ...     <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>  </head>  ...</html>
Comment

alpine js

< script  src = " https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.xx/dist/alpine.min.js " defer > </ script >
Comment

alpine js

<div x-data="{ open: false }">
    <button @click="open = true">Open Dropdown</button>

    <ul
        x-show="open"
        @click.away="open = false"
    >
        Dropdown Body
    </ul>
</div>
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
Comment

alpine js

<div x-data="{ tab: 'foo' }">
    <button :class="{ 'active': tab === 'foo' }" @click="tab = 'foo'">Foo</button>
    <button :class="{ 'active': tab === 'bar' }" @click="tab = 'bar'">Bar</button>

    <div x-show="tab === 'foo'">Вкладка Foo</div>
    <div x-show="tab === 'bar'">Вкладка Bar</div>
</div>
Comment

PREVIOUS NEXT
Code Example
Javascript :: call a function of another component vue 
Javascript :: strict mode 
Javascript :: next js cookie 
Javascript :: nodejs global 
Javascript :: open ai gym 
Javascript :: ordenar un array de mayor a menor 
Javascript :: how to access data in json format using asp.net c# 
Javascript :: node fetch response body 
Javascript :: javascript less than but greater than 
Javascript :: javascript boolean 
Javascript :: array to map js 
Javascript :: javascript span style 
Javascript :: object assign 
Javascript :: image upload using jquery ajax 
Javascript :: enzyme react 
Javascript :: trigger click on first row datatable jquery 
Javascript :: substr javascript 
Javascript :: vanilla js http server 
Javascript :: express post 
Javascript :: mong db connect error 
Javascript :: javascript swap array elements 
Javascript :: get index of first number in string javascript 
Javascript :: js if text contains lowercase 
Javascript :: shuffle array in javascript 
Javascript :: javascript add query string to url 
Javascript :: firebase get last document 
Javascript :: tofixed javascript 
Javascript :: how to pass function as a props in react in functional components 
Javascript :: error first line of nextjs file 
Javascript :: javascript foreach loop array 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =