Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Conversation

@sanderdlm
Copy link

@sanderdlm sanderdlm commented Oct 1, 2021

Het is ruw, maar wel grotendeels functioneel. Ik gebruik deze branch om te testen in bestaand project.

PR in core bundle: sumocoders/FrameworkCoreBundle#86

import { Theme } from './Framework/Theme'
import { FileInput } from './Framework/FileInput'

window.bootstrap = bootstrap
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misschien een comment toevoegen waarom dit gebeurd? Iets als // Expose Bootstrap so we can use it directly

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonasdekeukelaere weet jij nog specifiek waarvoor dit nodig was?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

voor in andere imports aan bootstrap te kunnen, @Katrienvh gaat dat beter kunnen uitleggen

Comment on lines -24 to -26
static remove (toastId) {
$(`#${toastId}`).toast('hide')
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is die remove niet meer nodig?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Geen idee. Een toast leeft sowieso maar voor 2 requests in Symfony, dus ik weet niet of we die ooit manueel moeten verwijderen. Misschien als we een SPA of volledige Vue applicatie maken wel.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, ik gebruikte wel vaak tijdelijke toasts voor confirmation messages of zo die na x seconden vanzelf verdwijnen.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ik ga het zo laten en het terug toevoegen als we het nodig hebben in een project (zoals bij veel zaken in deze PR). Goed?

@sanderdlm sanderdlm changed the title WIP: Refactor jquery Refactor jquery Nov 17, 2021
@sanderdlm sanderdlm merged commit 9fa4f8d into master Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants