top of page

TEST-FILTER

CLOSE.png
Title
Index
Kategorie
Tutorial
Level
Beschreibung
Test-Filter
00004
FILTER
EXPERIENCED
Description...
Website-Navigation
00003
NAVIGATION
BEGINNER
Description...
Get Date & Time (on-click)
00002
DATE & TIME
BEGINNER
Hello and welcome, ​ you don't know how to handle with date & time - codings? Then this little example could perhaps help you to find a solution for your issue. Just try it out!
Custom - Menu
00001
MENU
BEGINNER
Hello, ​ in this tutorial you can learn how to create your own custom "NAVIGATION-MENU". Wix offers his own menus, but sometimes you need more options, another funktionality, or you want even just simply create it in your own design. ​ Althoug Wix is still don't offers unlimited possibilities, there are a lot off options how to generate his own, fresh looking menü-design with some cool effects. ​ All the used elements in this project you will find below.

Filter-Results

CLOSE.png

Total-Count

TEST-FILTER

First-Item

TEST-FILTER

Last-Item

TEST-FILTER

Forum-Post
Start-Filter
Show-Code
Filter-Results

Test-Filter

Description...

Vom:

00004

Get Date & Time (on-click)

Hello and welcome, ​ you don't know how to handle with date & time - codings? Then this little example could perhaps help you to find a solution for your issue. Just try it out!

Vom:

00002

Website-Navigation

Description...

Vom:

00003

Custom - Menu

Hello, ​ in this tutorial you can learn how to create your own custom "NAVIGATION-MENU". Wix offers his own menus, but sometimes you need more options, another funktionality, or you want even just simply create it in your own design. ​ Althoug Wix is still don't offers unlimited possibilities, there are a lot off options how to generate his own, fresh looking menü-design with some cool effects. ​ All the used elements in this project you will find below.

Vom:

00001

CODE

CLOSE.png

import wixData from 'wix-data';

 

$w.onReady( () => {

    $w("#dataset1").onReady( () => {   

        let totalCount = $w("#dataset1").getTotalCount()

        $w("#dataset1").getItems(0, totalCount)

        

        .then( (result) => {

            let items = result.items;

        //------------------------------------------

            console.log("Total-Count = " + totalCount)

            console.log((totalCount))

            console.log(items)

            console.log(items[0].index)

            console.log(items[0].kategorie)

            console.log(items[0].tutorialLevel)

        //------------------------------------------

        } );

    } );

} );


 

export function BTNfilterresults_click(event) {show_results(), $w('#BOXfilterresults').show('FadeIn')}

 

function show_results (parameter) {

    $w("#dataset1").onReady( () => {    

        $w("#dataset1").getItems(0, $w("#dataset1").getTotalCount())

 

        .then( (result) => {

            let items = result.items

            let totalCount = result.items.length

            let firstFilteredItem = items[0]

            let lastFilteredItem = items[totalCount-1]

 

            console.log(result)

            console.log(totalCount)

            console.log(firstFilteredItem)

            console.log(lastFilteredItem)

 

            $w('#TXTtotalcount').text = totalCount.toString()

            $w('#TXTfirstitem').text = firstFilteredItem.title.toString()

            $w('#TXTlastitem').text = lastFilteredItem.title.toString()

        })        

    })

}


 

export function BTNfilter_click(event) {start_Filter()}

 

function start_Filter (parameter) {

    $w('#repeater1').show()

 let filter =  wixData.filter()

 let myKategory = $w('#dropdown1').value

 let myTutorial = $w('#dropdown2').value

 

 if ($w('#dropdown1').value!=0) {filter = filter.contains('kategorie', myKategory);}

 if ($w('#dropdown2').value!=0) {filter = filter.eq('tutorialLevel', myTutorial);}

    console.log(filter)

    $w('#dataset1').setFilter(filter)        

}

Comment-Box

CLOSE.png

Version-1.0

Under_Construction.png

Leave a comment. . .

Arrow.png

General-Settings

ON                 OFF

Show Text-Length

ON                 OFF

max. Text-Length

ON                 OFF

Show Key-Press

ON                 OFF

Show Key-Code

ON                 OFF

Show Total-Count

Character-limit

Load default settings
Save
russian-dima 00:08:25

! YES ! Arthur is out there XDDDDDDDD

30.7.2020
russian-dima 00:08:07

Hello! Some one out there?

30.7.2020
russian-dima 18:55:23
29.7.2020
russian-dima 17:26:48

No problem, you are welcome ;-)

24.7.2020
arthurvalatin 22:54:45

Very helpful tutorial russian-dima! Thank you so much!

24/07/2020
Page 1 of 1
Design
Settings
About
CLOSE.png
Leave a comment, or start a chat.

Post-Comment

- - -

Pressed-Key

- - -

Key-Code

Text-Length

- - -

max. Text-Length

- - -

Number of Comments

- - -

designed & developed by russian-dima

Write a comment
bottom of page