dmigwi / sample

0 stars 0 forks source link

implement custom CSPP server - TODO Statement #541

Open dmigwi opened 1 year ago

dmigwi commented 1 year ago

Context to consider:

    for pg.coordinationServer.Clicked() {
        textModal := modal.NewTextInputModal(pg.Load).
            Hint(values.String(values.StrCoordinationServer)).
            PositiveButtonStyle(pg.Load.Theme.Color.Primary, pg.Load.Theme.Color.InvText).
            SetPositiveButtonCallback(func(newName string, tim *modal.TextInputModal) bool {
                // Todo - implement custom CSPP server
                return true
            })

        textModal.SetNegativeButtonCallback(func() {}).
            SetPositiveButtonText(values.String(values.StrSave))

        pg.ParentWindow().ShowModal(textModal)
    }

(Issue originally authored by: @Kennedy Izuegbu in gitlab.com)