We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Is there a bug in the default style? Incorrect display.

<template>

<ejs-querybuilder width="70%">
<e-columns>
<e-column field='EmployeeID' label='Employee ID' type='number' />
<e-column field='FirstName' label='First Name' type='string' />
<e-column field='TitleOfCourtesy' :values="values" label='Title Of Courtesy' type='boolean' />
<e-column field='Title' label='Title' type='string' />
<e-column field='HireDate' label='Hire Date' type='date' format='dd/MM/yyyy' />
<e-column field='Country' label='Country' type='string' />
<e-column field='City' label='City' type='string' />
</e-columns>
</ejs-querybuilder>

</template>

<script>

import Vue from "vue";
import { QueryBuilderPlugin } from "@syncfusion/ej2-vue-querybuilder";

Vue.use(QueryBuilderPlugin);
export default {
name: "test2",
data(){
return {
values: ['Mr.', 'Mrs.'],
}
},
mounted() {

},
methods:{

},

}
</script>

<style scoped>
.e-query-builder {
margin: 0 auto;
}
@import "@syncfusion/ej2-base/styles/bootstrap5.css";
@import "@syncfusion/ej2-buttons/styles/bootstrap5.css";
@import "@syncfusion/ej2-splitbuttons/styles/bootstrap5.css";
@import "@syncfusion/ej2-dropdowns/styles/bootstrap5.css";
@import "@syncfusion/ej2-inputs/styles/bootstrap5.css";
@import "@syncfusion/ej2-lists/styles/bootstrap5.css";
@import "@syncfusion/ej2-popups/styles/bootstrap5.css";
@import "@syncfusion/ej2-calendars/styles/bootstrap5.css";
@import "@syncfusion/ej2-vue-querybuilder/styles/bootstrap5.css";
</style>





8 Replies

YA YuvanShankar Arunagiri Syncfusion Team November 2, 2022 08:43 AM UTC

We were unable to replicate the issue at our end. We suspect that there is an issue in referring the Syncfusion script and style. You can refer to the below UG link and attached sample.


UG link:  https://ej2.syncfusion.com/vue/documentation/query-builder/getting-started/#adding-css-reference


If you are still facing issues, share a reproducible sample of the issue or replicate the issue in our sample.


Attachment: qb_c290307c.zip


XZ xu zhi bin replied to YuvanShankar Arunagiri November 17, 2022 04:00 AM UTC

I know the difference. The style can't write this, but I don't understand why? Must this be removed?






YA YuvanShankar Arunagiri Syncfusion Team November 18, 2022 10:48 AM UTC

Removing the scoped from style tag is not solution for your query. Please import/refer the path of the packages correctly and refer the below code snippet.

<style scoped>

    @import "../node_modules/@syncfusion/ej2-base/styles/bootstrap5.css";

………………………………….

    </style>



XZ xu zhi bin November 22, 2022 02:50 AM UTC

Look at my demo. Not displayed by default.




Attachment: testsyncfusion_4a4808de.zip


XZ xu zhi bin replied to YuvanShankar Arunagiri November 22, 2022 03:01 AM UTC

Do styles have to be referenced globally? Can't it be referenced locally?




YA YuvanShankar Arunagiri Syncfusion Team November 28, 2022 01:56 PM UTC

Xu zhi bin, we need to inform you that scoped attributes are not working for dynamic components. So, you have to remove the scoped variable from the style tag and provide a proper import path for the style reference. Please find the below image for your reference.  


Text

Description automatically generated

  

Please let us know if you have any concerns. 



XZ xu zhi bin replied to YuvanShankar Arunagiri November 29, 2022 01:05 AM UTC

Do all components not support scopes? Or is it partially unsupported? Is there a way to support scopes?





TJ Theveshwar Jayakumar Syncfusion Team December 2, 2022 01:21 PM UTC

Hi xu zhi bin,

Since we are generating dynamic elements for all Syncfusion components, the scoped attribute will not be supported for our components.


Please get back to us if you have any concerns


Loader.
Live Chat Icon For mobile
Up arrow icon