-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
добавил иконки редактирования, удаления доски, поправил сетку пинов и…
… пару обработчиков
- Loading branch information
Showing
9 changed files
with
120 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="icon-button__content-container {{state.className}}"> | ||
<img class="{{state.className}}" src="{{state.iconPath}}"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
'use strict' | ||
|
||
import { BaseComponent } from "../base.js" | ||
|
||
/** | ||
* Component that is used to display button with icon inside of it. | ||
*/ | ||
export class IconButtonComponent extends BaseComponent { | ||
/** | ||
* Creates an IconButtonComponent. | ||
* @param {HTMLElement} parent - HTML element of the parent container. | ||
* @param {String} iconPath - file path to the icon. | ||
*/ | ||
constructor(parent, state) { | ||
super(parent, state); | ||
} | ||
|
||
/** | ||
* Renders a template of IconButtonComponent. | ||
* @returns rendered template of IconButtonComponent. | ||
*/ | ||
renderTemplate() { | ||
const template = Handlebars.templates['icon-button.hbs']; | ||
const renderedTemplate = template({ | ||
state: this.State | ||
}); | ||
|
||
return renderedTemplate; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters