Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

65 changes: 0 additions & 65 deletions src/app/helpers/windowHelper/componentDtHelper/components/list.ts

This file was deleted.

122 changes: 0 additions & 122 deletions src/app/helpers/windowHelper/componentDtHelper/components/table.ts

This file was deleted.

56 changes: 0 additions & 56 deletions src/app/helpers/windowHelper/customWindow.helper.ts

This file was deleted.

22 changes: 11 additions & 11 deletions src/app/helpers/windowHelper/customWindow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from "./inputDtHelper/button";
import { Button } from "./inputs/button";

export class CustomWindow {
public wGame: any|Window;
Expand Down Expand Up @@ -38,8 +38,8 @@ export class CustomWindow {
/**
* Create a basic window with dofus style but without define size.
* Auto insert in DOM (windowsContainer)
* @param title Title will show to user
* @param id The id of that window
* @param {string} title Title will show to user
* @param {string} id The id of that window
*/
public static createDofusWindow(wGame: any|Window, title: string, id: string, options?: {customClassBody?: string}): CustomWindow {
const instance: CustomWindow = new CustomWindow(wGame);
Expand Down Expand Up @@ -86,19 +86,19 @@ export class CustomWindow {

/**
* Add a button to the right of the header
* @param button The div button to add
* @param {Button} button The div button to add
*/
public addButtonToRightToHeader(button: HTMLDivElement): CustomWindow {
this.windowTitle.insertAdjacentElement('afterend', button);
public addButtonToRightToHeader(button: Button): CustomWindow {
this.windowTitle.insertAdjacentElement('afterend', button.getHtmlElement());
return this;
}

/**
* Add a button to the left of the header
* @param button The div button to add
* @param {Button} button The div button to add
*/
public addButtonToLeftToHeader(button: HTMLDivElement): CustomWindow {
this.windowTitle.insertAdjacentElement('beforebegin', button);
public addButtonToLeftToHeader(button: Button): CustomWindow {
this.windowTitle.insertAdjacentElement('beforebegin', button.getHtmlElement());
return this;
}

Expand Down Expand Up @@ -141,8 +141,8 @@ export class CustomWindow {
this.window.style.height = this.oldState.height;
};

this.addButtonToRightToHeader(extendBtn.getHtmlElement());
this.addButtonToRightToHeader(reduceBtn.getHtmlElement());
this.addButtonToRightToHeader(extendBtn);
this.addButtonToRightToHeader(reduceBtn);

extendBtn.addEvent(extendWindow);
reduceBtn.addEvent(reduceWindow);
Expand Down
Loading