2.0.231 • Published 3 months ago

@borracciablu/dh-classlist v2.0.231

Weekly downloads
185
License
BSD-3-Clause
Repository
github
Last release
3 months ago

Installing

npm install @borracciablu/dh-classlist

import {addClass} from '@borracciablu/dh-classlist';
var {addClass, removeClass, toggleClass} = require('@borracciablu/dh-classlist');

API Reference

addClass(itmList, clsList)

var itm = document.querySelectorAll('.btn');
var cls = ['d-none'];
addClass(itm, cls);

removeClass(itmList, clsList)

var itm = document.querySelectorAll('.btn');
var cls = ['d-none'];
removeClass(itm, cls);

toggleClass(itmList, clsList)

var itm = document.querySelectorAll('.btn');
var cls = ['d-none'];
toggleClass(itm, cls);

addClassThunk(itmList, clsList)

var itm = document.querySelectorAll('.btn');
var cls = ['d-none'];
var thunk = addClassThunk(itm, cls);
setTimeout(thunk, 3000);

removeClassThunk(itmList, clsList)

var itm = document.querySelectorAll('.btn');
var cls = ['d-none'];
var thunk = removeClassThunk(itm, cls);
setTimeout(thunk, 3000);

toggleClassThunk(itmList, clsList)

var itm = document.querySelectorAll('.btn');
var cls = ['d-none'];
var thunk = toggleClass(itm, cls);
setTimeout(thunk, 3000);

Deprecated API Reference

execClass(itmList, opList)

var docList = document.querySelectorAll('.doc');
execClass(docList, [{'add': 'd-block'}, {remove: 'd-none'}]);

// replace with
( addClass(docList, 'd-block')
, removeClass(docList, 'd-none'));

execClassThunk(itmList, opList)

var docList = document.querySelectorAll('.doc');
var thunk = execClassThunk(docList, [{'add': 'd-block'}, {remove: 'd-none'}]);
setTimeout(thunk, 3000);

// replace with
var thunk =  () => ( addClass(docList, 'd-block')
                   , removeClass(docList, 'd-none'));

setTimeout(thunk, 3000);

CDN

Recommended CDN:

https://unpkg.com/@borracciablu/dh-classlist@latest/dist/dh-classlist.min.js

var {addClass} = window.dhClasslist;

// Alternative syntax
var addClass = window.dhClasslist.addClass;
2.0.231

3 months ago

2.0.230

3 months ago

2.0.218

6 months ago

2.0.219

6 months ago

2.0.229

3 months ago

2.0.228

4 months ago

2.0.227

4 months ago

2.0.226

4 months ago

2.0.225

5 months ago

2.0.224

5 months ago

2.0.223

5 months ago

2.0.222

5 months ago

2.0.221

6 months ago

2.0.220

6 months ago

2.0.217

7 months ago

2.0.216

7 months ago

2.0.215

7 months ago

2.0.214

7 months ago

2.0.213

7 months ago

2.0.212

8 months ago

2.0.211

8 months ago

2.0.210

8 months ago

2.0.209

8 months ago

2.0.208

9 months ago

2.0.207

9 months ago

2.0.206

9 months ago

2.0.205

9 months ago

2.0.204

9 months ago

2.0.203

10 months ago

2.0.202

10 months ago

2.0.201

10 months ago

2.0.200

10 months ago

2.0.199

10 months ago

2.0.198

10 months ago

2.0.197

10 months ago

2.0.196

11 months ago

2.0.195

11 months ago

2.0.194

12 months ago

2.0.193

12 months ago

2.0.191

12 months ago

2.0.192

12 months ago

2.0.190

1 year ago

2.0.179

1 year ago

2.0.178

1 year ago

2.0.177

1 year ago

2.0.176

1 year ago

2.0.175

1 year ago

2.0.174

1 year ago

2.0.173

1 year ago

2.0.172

1 year ago

2.0.171

1 year ago

2.0.170

1 year ago

2.0.180

1 year ago

2.0.189

1 year ago

2.0.188

1 year ago

2.0.187

1 year ago

2.0.186

1 year ago

2.0.185

1 year ago

2.0.184

1 year ago

2.0.183

1 year ago

2.0.182

1 year ago

2.0.181

1 year ago

2.0.159

1 year ago

2.0.158

1 year ago

2.0.157

1 year ago

2.0.156

1 year ago

2.0.155

1 year ago

2.0.154

1 year ago

2.0.153

1 year ago

2.0.152

1 year ago

2.0.151

1 year ago

2.0.150

1 year ago

2.0.169

1 year ago

2.0.168

1 year ago

2.0.167

1 year ago

2.0.166

1 year ago

2.0.165

1 year ago

2.0.164

1 year ago

2.0.163

1 year ago

2.0.162

1 year ago

2.0.161

1 year ago

2.0.160

1 year ago

2.0.149

1 year ago

2.0.148

1 year ago

2.0.147

1 year ago

2.0.146

1 year ago

2.0.145

1 year ago

2.0.139

1 year ago

2.0.138

1 year ago

2.0.144

1 year ago

2.0.143

1 year ago

2.0.142

1 year ago

2.0.141

1 year ago

2.0.140

1 year ago

2.0.137

1 year ago

2.0.136

1 year ago

2.0.135

2 years ago

2.0.134

2 years ago

2.0.133

2 years ago

2.0.132

2 years ago

2.0.131

2 years ago

2.0.130

2 years ago

2.0.129

2 years ago

2.0.128

2 years ago

2.0.127

2 years ago

2.0.126

2 years ago

2.0.125

2 years ago

2.0.124

2 years ago

2.0.123

2 years ago

2.0.122

2 years ago

2.0.121

2 years ago

2.0.120

2 years ago

2.0.109

2 years ago

2.0.119

2 years ago

2.0.118

2 years ago

2.0.117

2 years ago

2.0.116

2 years ago

2.0.115

2 years ago

2.0.114

2 years ago

2.0.113

2 years ago

2.0.112

2 years ago

2.0.111

2 years ago

2.0.110

2 years ago

2.0.108

2 years ago

2.0.107

2 years ago

2.0.106

2 years ago

2.0.105

2 years ago

2.0.104

2 years ago

2.0.103

2 years ago

2.0.102

2 years ago

2.0.101

2 years ago

2.0.100

2 years ago

2.0.99

2 years ago

2.0.97

2 years ago

2.0.98

2 years ago

2.0.96

2 years ago

2.0.79

2 years ago

2.0.78

2 years ago

2.0.88

2 years ago

2.0.89

2 years ago

2.0.86

2 years ago

2.0.87

2 years ago

2.0.84

2 years ago

2.0.85

2 years ago

2.0.82

2 years ago

2.0.83

2 years ago

2.0.80

2 years ago

2.0.81

2 years ago

2.0.95

2 years ago

2.0.93

2 years ago

2.0.94

2 years ago

2.0.91

2 years ago

2.0.92

2 years ago

2.0.90

2 years ago

2.0.59

2 years ago

2.0.57

2 years ago

2.0.58

2 years ago

2.0.68

2 years ago

2.0.69

2 years ago

2.0.66

2 years ago

2.0.67

2 years ago

2.0.64

2 years ago

2.0.65

2 years ago

2.0.62

2 years ago

2.0.63

2 years ago

2.0.60

2 years ago

2.0.61

2 years ago

2.0.77

2 years ago

2.0.75

2 years ago

2.0.76

2 years ago

2.0.73

2 years ago

2.0.74

2 years ago

2.0.71

2 years ago

2.0.72

2 years ago

2.0.70

2 years ago

2.0.55

2 years ago

2.0.56

2 years ago

2.0.53

2 years ago

2.0.54

2 years ago

2.0.52

2 years ago

2.0.48

2 years ago

2.0.49

2 years ago

2.0.46

2 years ago

2.0.47

2 years ago

2.0.44

2 years ago

2.0.45

2 years ago

2.0.42

2 years ago

2.0.43

2 years ago

2.0.40

2 years ago

2.0.41

2 years ago

2.0.51

2 years ago

2.0.50

2 years ago

2.0.19

2 years ago

2.0.17

3 years ago

2.0.18

2 years ago

2.0.26

2 years ago

2.0.27

2 years ago

2.0.24

2 years ago

2.0.25

2 years ago

2.0.22

2 years ago

2.0.23

2 years ago

2.0.20

2 years ago

2.0.21

2 years ago

2.0.28

2 years ago

2.0.29

2 years ago

2.0.37

2 years ago

2.0.38

2 years ago

2.0.35

2 years ago

2.0.36

2 years ago

2.0.33

2 years ago

2.0.34

2 years ago

2.0.31

2 years ago

2.0.32

2 years ago

2.0.30

2 years ago

2.0.39

2 years ago

2.0.9

3 years ago

2.0.8

3 years ago

2.0.15

3 years ago

2.0.16

3 years ago

2.0.13

3 years ago

2.0.14

3 years ago

2.0.11

3 years ago

2.0.12

3 years ago

2.0.10

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.149

3 years ago

1.2.156

3 years ago

1.2.155

3 years ago

1.2.158

3 years ago

1.2.157

3 years ago

1.2.159

3 years ago

1.2.150

3 years ago

1.2.152

3 years ago

1.2.151

3 years ago

1.2.154

3 years ago

1.2.153

3 years ago

1.2.147

3 years ago

1.2.148

3 years ago

1.2.134

3 years ago

1.2.133

3 years ago

1.2.136

3 years ago

1.2.135

3 years ago

1.2.138

3 years ago

1.2.137

3 years ago

1.2.139

3 years ago

1.2.132

3 years ago

1.2.131

3 years ago

1.2.145

3 years ago

1.2.144

3 years ago

1.2.146

3 years ago

1.2.141

3 years ago

1.2.140

3 years ago

1.2.143

3 years ago

1.2.142

3 years ago

1.2.130

3 years ago

1.2.125

3 years ago

1.2.127

3 years ago

1.2.126

3 years ago

1.2.129

3 years ago

1.2.128

3 years ago

1.2.123

3 years ago

1.2.122

3 years ago

1.2.124

3 years ago

1.2.121

3 years ago

1.2.116

3 years ago

1.2.118

3 years ago

1.2.117

3 years ago

1.2.120

3 years ago

1.2.119

3 years ago

1.2.115

3 years ago

1.2.114

3 years ago

1.2.113

3 years ago

1.2.112

3 years ago

1.2.111

3 years ago

1.2.110

3 years ago

1.2.109

3 years ago

1.2.108

3 years ago

1.2.107

3 years ago

1.2.106

3 years ago

1.2.105

3 years ago

1.2.104

3 years ago

1.2.103

3 years ago

1.2.102

3 years ago

1.2.101

3 years ago

1.2.100

3 years ago

1.2.99

3 years ago

1.2.98

3 years ago

1.2.96

3 years ago

1.2.97

3 years ago

1.2.95

3 years ago

1.2.94

3 years ago

1.2.93

3 years ago

1.2.92

3 years ago

1.2.91

3 years ago

1.2.90

3 years ago

1.2.89

3 years ago

1.2.88

3 years ago

1.2.87

3 years ago

1.2.86

3 years ago

1.2.85

3 years ago

1.2.84

3 years ago

1.2.83

3 years ago

1.2.82

3 years ago

1.2.81

3 years ago

1.2.80

3 years ago

1.2.78

3 years ago

1.2.79

3 years ago

1.2.76

3 years ago

1.2.77

3 years ago

1.2.75

4 years ago

1.2.63

4 years ago

1.2.64

4 years ago

1.2.61

4 years ago

1.2.62

4 years ago

1.2.67

4 years ago

1.2.68

4 years ago

1.2.65

4 years ago

1.2.66

4 years ago

1.2.69

4 years ago

1.2.70

4 years ago

1.2.71

4 years ago

1.2.74

4 years ago

1.2.72

4 years ago

1.2.73

4 years ago

1.2.60

4 years ago

1.2.59

4 years ago

1.2.58

4 years ago

1.2.57

4 years ago

1.2.56

4 years ago

1.2.55

4 years ago

1.2.54

4 years ago

1.2.53

4 years ago

1.2.52

4 years ago

1.2.51

4 years ago

1.2.49

4 years ago

1.2.48

4 years ago

1.2.50

4 years ago

1.2.47

4 years ago

1.2.46

4 years ago

1.2.45

4 years ago

1.2.44

4 years ago

1.2.42

4 years ago

1.2.43

4 years ago

1.2.41

4 years ago

1.2.40

4 years ago

1.2.39

4 years ago

1.2.38

4 years ago

1.2.37

4 years ago

1.2.36

4 years ago

1.2.35

4 years ago

1.2.34

4 years ago

1.2.33

4 years ago

1.2.32

4 years ago

1.2.31

4 years ago

1.2.30

4 years ago

1.2.29

4 years ago

1.2.28

4 years ago

1.2.27

4 years ago

1.2.26

4 years ago

1.2.25

4 years ago

1.2.24

4 years ago

1.2.23

4 years ago

1.2.22

4 years ago

1.2.21

4 years ago

1.2.20

4 years ago

1.2.19

4 years ago

1.2.18

4 years ago

1.2.17

4 years ago

1.2.16

4 years ago

1.2.15

4 years ago

1.2.14

4 years ago

1.2.13

4 years ago

1.2.12

4 years ago

1.2.11

4 years ago

1.2.10

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago