Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change caption format of dialog #1889

Closed
satsokn opened this issue Feb 3, 2017 · 8 comments
Closed

how to change caption format of dialog #1889

satsokn opened this issue Feb 3, 2017 · 8 comments

Comments

@satsokn
Copy link

satsokn commented Feb 3, 2017

i changed the instance name but i need to change the format of caption of a dialog
image
Edit . Where should i look to change the whole format?

@Estrusco
Copy link
Contributor

Estrusco commented Feb 3, 2017

You can override updateTitle in your XYZDialog.ts

@satsokn
Copy link
Author

satsokn commented Feb 3, 2017

is there any example overiding update title?

@satsokn
Copy link
Author

satsokn commented Feb 3, 2017

is it possible just to change only the atrribute of given format?

@Estrusco
Copy link
Contributor

Estrusco commented Feb 3, 2017

See #421 and #941

namespace YourNamespace {

    @Serenity.Decorators.registerClass()
    export class XYZDialog extends Serenity.EntityDialog<XYZRow, any> {
        protected getFormKey() { return XYZForm.formKey; }
        protected getIdProperty() { return XYZRow.idProperty; }
        protected getLocalTextPrefix() { return XYZRow.localTextPrefix; }
        protected getNameProperty() { return XYZRow.nameProperty; }
        protected getService() { return XYZService.baseUrl; }

        constructor() {
            super();
        }
        
        protected updateTitle() {
            this.dialogTitle = "Your title ";
        }

@satsokn
Copy link
Author

satsokn commented Feb 3, 2017

thanks a lot. can i change only atrribute of given format from dialog?

@VictorTomaili
Copy link
Member

create your own decorator for this.

@satsokn
Copy link
Author

satsokn commented Feb 3, 2017

how do i access data inside dialog.ts ?

@volkanceylan
Copy link
Member

this.entity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants