class CategoriesComponent {
	constructor ()
	{
		this.name = "Categories";
		this.attributes = ["data-v-component-categories"],

		this.image ="icons/categories.svg";
		this.html = '<div class="form-group"><label>Your response:</label><textarea class="form-control"></textarea></div>';
		
		this.properties = [];
	}

    init(node)
	{
		$('.form-group[data-v-group]').attr('style','display:none !important');
		if (node.dataset.type != undefined)
		{
			$('.form-group[data-v-group="'+ node.dataset.type + '"]').attr('style','');
		} else
		{		
			$('.form-group[data-v-group]:first').attr('style','');
		}
	}
}

let categoriesComponent = new CategoriesComponent;

export {
  categoriesComponent
};
