2.0.231 • Published 8 months ago

@borracciablu/dh-classlist v2.0.231

Weekly downloads
185
License
BSD-3-Clause
Repository
github
Last release
8 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

8 months ago

2.0.230

8 months ago

2.0.218

11 months ago

2.0.219

10 months ago

2.0.229

8 months ago

2.0.228

9 months ago

2.0.227

9 months ago

2.0.226

9 months ago

2.0.225

9 months ago

2.0.224

9 months ago

2.0.223

9 months ago

2.0.222

9 months ago

2.0.221

10 months ago

2.0.220

10 months ago

2.0.217

11 months ago

2.0.216

11 months ago

2.0.215

11 months ago

2.0.214

12 months ago

2.0.213

12 months ago

2.0.212

12 months ago

2.0.211

1 year ago

2.0.210

1 year ago

2.0.209

1 year ago

2.0.208

1 year ago

2.0.207

1 year ago

2.0.206

1 year ago

2.0.205

1 year ago

2.0.204

1 year ago

2.0.203

1 year ago

2.0.202

1 year ago

2.0.201

1 year ago

2.0.200

1 year ago

2.0.199

1 year ago

2.0.198

1 year ago

2.0.197

1 year ago

2.0.196

1 year ago

2.0.195

1 year ago

2.0.194

1 year ago

2.0.193

1 year ago

2.0.191

1 year ago

2.0.192

1 year ago

2.0.190

1 year ago

2.0.179

1 year ago

2.0.178

1 year ago

2.0.177

2 years ago

2.0.176

2 years ago

2.0.175

2 years ago

2.0.174

2 years ago

2.0.173

2 years ago

2.0.172

2 years ago

2.0.171

2 years ago

2.0.170

2 years 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

2 years ago

2.0.158

2 years ago

2.0.157

2 years ago

2.0.156

2 years ago

2.0.155

2 years ago

2.0.154

2 years ago

2.0.153

2 years ago

2.0.152

2 years ago

2.0.151

2 years ago

2.0.150

2 years ago

2.0.169

2 years ago

2.0.168

2 years ago

2.0.167

2 years ago

2.0.166

2 years ago

2.0.165

2 years ago

2.0.164

2 years ago

2.0.163

2 years ago

2.0.162

2 years ago

2.0.161

2 years ago

2.0.160

2 years ago

2.0.149

2 years ago

2.0.148

2 years ago

2.0.147

2 years ago

2.0.146

2 years ago

2.0.145

2 years ago

2.0.139

2 years ago

2.0.138

2 years ago

2.0.144

2 years ago

2.0.143

2 years ago

2.0.142

2 years ago

2.0.141

2 years ago

2.0.140

2 years ago

2.0.137

2 years ago

2.0.136

2 years 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

3 years ago

2.0.48

3 years ago

2.0.49

3 years ago

2.0.46

3 years ago

2.0.47

3 years ago

2.0.44

3 years ago

2.0.45

3 years ago

2.0.42

3 years ago

2.0.43

3 years ago

2.0.40

3 years ago

2.0.41

3 years ago

2.0.51

3 years ago

2.0.50

3 years ago

2.0.19

3 years ago

2.0.17

3 years ago

2.0.18

3 years ago

2.0.26

3 years ago

2.0.27

3 years ago

2.0.24

3 years ago

2.0.25

3 years ago

2.0.22

3 years ago

2.0.23

3 years ago

2.0.20

3 years ago

2.0.21

3 years ago

2.0.28

3 years ago

2.0.29

3 years ago

2.0.37

3 years ago

2.0.38

3 years ago

2.0.35

3 years ago

2.0.36

3 years ago

2.0.33

3 years ago

2.0.34

3 years ago

2.0.31

3 years ago

2.0.32

3 years ago

2.0.30

3 years ago

2.0.39

3 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

4 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

4 years ago

1.2.114

4 years ago

1.2.113

4 years ago

1.2.112

4 years ago

1.2.111

4 years ago

1.2.110

4 years ago

1.2.109

4 years ago

1.2.108

4 years ago

1.2.107

4 years ago

1.2.106

4 years ago

1.2.105

4 years ago

1.2.104

4 years ago

1.2.103

4 years ago

1.2.102

4 years ago

1.2.101

4 years ago

1.2.100

4 years ago

1.2.99

4 years ago

1.2.98

4 years ago

1.2.96

4 years ago

1.2.97

4 years ago

1.2.95

4 years ago

1.2.94

4 years ago

1.2.93

4 years ago

1.2.92

4 years ago

1.2.91

4 years ago

1.2.90

4 years ago

1.2.89

4 years ago

1.2.88

4 years ago

1.2.87

4 years ago

1.2.86

4 years ago

1.2.85

4 years ago

1.2.84

4 years ago

1.2.83

4 years ago

1.2.82

4 years ago

1.2.81

4 years ago

1.2.80

4 years ago

1.2.78

4 years ago

1.2.79

4 years ago

1.2.76

4 years ago

1.2.77

4 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

5 years ago

1.2.10

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 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