Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

user attributes for custom elemets

get value() {
  return this.getAttribute('value');
}

set value(newValue) {
  this.setAttribute('value', newValue);
}
Source by alligator.io #
 
PREVIOUS NEXT
Tagged: #user #attributes #custom #elemets
ADD COMMENT
Topic
Name
6+1 =